Gen. partnerAlgotech

PHP function inet_pton()

Converts a human readable IP address to its packed in_addr representation

|
September 11, 2019

Availability in versions: PHP 5.1.0

Converts a human readable IP address to its packed in_addr representation

Parameters

Parameter Data type Default value Note
$address string not A human readable IPv4 or IPv6 address.

Return values

string

the in_addr representation of the given address

Other resources

Official inet-pton documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.