IPv4 Integer Conversion Function Write the shortest function to convert an IP address into it's integer representation and output it as an integer.

To change an IPv4 address to it's integer representation, the following calculation is required:


Break the IP address into it's four octets.
(Octet1 * 16777216) + (Octet2 * 65536) + (Octet3 * 256) + (Octet4)


Sample Input

192.168.1.1           10.10.104.36           8.8.8.8


Sample Output

3232235777            168454180              134744072
PHP - 21 Characters

&lt;?=ip2long($argv[1]);