Help with formatting array data
Posted: Fri Jul 01, 2005 9:24 am
Hi,
I have array data which I need to format. Currently the output looks like this;
[0] => 192.168.241.1
[1] => 192.168.241.2
[2] => 192.168.241.3
[3] => 192.168.241.5
[4] => 192.168.241.7
and my script to output this is as follows;
Is there anyway to html format this or to simply take out the "[0] =>" part so that the IPs are the only thing shown?
thanks in advance
I have array data which I need to format. Currently the output looks like this;
[0] => 192.168.241.1
[1] => 192.168.241.2
[2] => 192.168.241.3
[3] => 192.168.241.5
[4] => 192.168.241.7
and my script to output this is as follows;
Code: Select all
echo'<pre>';
print_r($available_ips);
echo '</pre>'thanks in advance