0

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

1
  • where you get this value from ? $row['NetworkSettings'] Commented Aug 9, 2011 at 6:54

1 Answer 1

6
$arr = explode ("|" ,  $row['NetworkSettings'] );
echo $arr[2];
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.