开发者

PHP html table output

开发者 https://www.devze.com 2023-03-26 16:24 出处:网络
I\'m having trouble changing the output of the following: echo \"<td>\" . $row[\'NetworkSettings\'] . \"</td>\";

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

精彩评论

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