Monday, 13 October 2014

How to convert integer from ip address using php? (ip2long)

$lower = "IP ADDRESS";
echo $lower_dec = (float)sprintf("%u",ip2long($lower));

No comments:

Post a Comment