开发者

PHP html table output

I'm having trouble changing the output of the following:

echo "<td>" . $row['NetworkSettings'] . "</td>";

displays this: 00:0C:29:44:D8:A1|192.168.1.1|192.168.1.170,

but I want it to display this 192.168.1.170

any help w开发者_开发技巧ould be appreciated


$arr = explode ("|" ,  $row['NetworkSettings'] );
echo $arr[2];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜