Dante
Dante

Reputation: 91

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 would be appreciated

Upvotes: 0

Views: 98

Answers (1)

fatnjazzy
fatnjazzy

Reputation: 6152

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

Upvotes: 6

Related Questions