|
ip2longConverts a string containing an (IPv4) Internet Protocol dotted address into a long integer Description
intfalse ip2long(string
$ip )The function ip2long generates a long integer representation of IPv4 Internet network address from its Internet standard format (dotted string) representation. ip2long will also work with non-complete IP addresses. Read » http://ps-2.kev009.com/wisclibrary/aix52/usr/share/man/info/en_US/a_doc_lib/libs/commtrf2/inet_addr.htm for more info. Parameters
Return Values
Returns the long integer or Examples
Example #1 ip2long Example
Example #2 Displaying an IP address This second example shows how to print a converted address with the printf function:
Notes
See Also
|