标签: php
我无法更改以下内容的输出:
echo "<td>" . $row['NetworkSettings'] . "</td>";
显示:00:0C:29:44:D8:A1|192.168.1.1|192.168.1.170,
00:0C:29:44:D8:A1|192.168.1.1|192.168.1.170,
但是我希望它显示这个192.168.1.170 任何帮助将不胜感激
答案 0 :(得分:6)
$arr = explode ("|" , $row['NetworkSettings'] ); echo $arr[2];