Query: inet_pton
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
INET_PTON(3) 1 INET_PTON(3) inet_pton - Converts a human readable IP address to its packed in_addr representationSYNOPSISstring inet_pton (string $address)DESCRIPTIONThis function converts a human readable IPv4 or IPv6 address (if PHP was built with IPv6 support enabled) into an address family appropri- ate 32bit or 128bit binary structure.PARAMETERSo $address - A human readable IPv4 or IPv6 address.RETURN VALUESReturns the in_addr representation of the given $address, or FALSE if a syntactically invalid $address is given (for example, an IPv4 address without dots or an IPv6 address without colons).EXAMPLESExample #1 inet_pton(3) Example <?php $in_addr = inet_pton('127.0.0.1'); $in6_addr = inet_pton('::1'); ?>CHANGELOG+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.0 | | | | | | | This function is now available on Windows plat- | | | forms. | | | | +--------+---------------------------------------------------+SEE ALSOip2long(3), long2ip(3), inet_ntop(3). PHP Documentation Group INET_PTON(3)
Related Man Pages |
---|
inet_pton(3) - debian |
inet_pton(3) - centos |
inet_pton(3) - minix |
inet_pton(3) - opendarwin |
inet_pton(3) - ultrix |
Similar Topics in the Unix Linux Community |
---|
Changing Machine IP address |
inet_pton function |
Make netstat human readable? |
'h' flag in du |
How to parse .nessus file to get result in human readable format? |