I'm confused by my results after using split()
I'm trying to isolate the first portion of IP addresses, so I use the following code:
$ipstring=explode(".",$REMOTE_ADDR);
echo $ipstring [0];
With an IP of say 13.248.258.185, This code returns numbers like 1.3111111111111E+45213 for $ipstring [0];
I've checked the $REMOTE_ADDR and this echos the correct IP
Any ideas?
Thanks