| 
 | ip2longConverts a string containing an (IPv4) Internet Protocol dotted address into a long integer Description
   int ip2long
    ( string  $ip_address)The function ip2long generates an 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://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/libs/commtrf2/inet_addr.htm for more info. Parameters
 
 Return Values
   Returns the long integer or  Changelog
 
 Examples
 Example #1 ip2long Example 
<?php
 Example #2 Displaying an IP address This second example shows how to print a converted address with the printf function: 
<?phpNotes
 
 See Also
 
 |