ip2long
Convert IPV4's string Internet protocol to a long integer number
ip2long()
function converts an IPv4 address into a long integer.
Convert IPv4 addresses to long integers:
<?php $ip = gethostbyname ( "www.gitbox.net" ) ; $out = "The following URL is equivalent: <br>" ; $out .= "https://www.gitbox.net/, https://" . $ip . "/, and https://" . sprintf ( "%u" , ip2long ( $ip ) ) . "/" ; echo $out ; ?>
parameter | describe |
---|---|
address | Required. Specify the standard IP address. |