Return to Snippet

Revision: 65152
at October 31, 2013 08:03 by martyncoup


Initial Code
$ip = "192.168.1.12"
$ip_split = explode('.', $ip);
$HEXIP = sprintf('%02x%02x%02x%02x', $ip_split[0], $ip_split[1], $ip_split[2], $ip_split[3]);

Initial URL


Initial Description
Covnerts an IP address to it's relative hex value.

Initial Title
Convert IP Address to Hex

Initial Tags
php, ip, convert

Initial Language
PHP