Gen. partnerAlgotech

PHP function ip2long()

Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address

|
September 11, 2019

Availability in PHP 4.0

Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address

Parameters

Parameter Data type Default value Note
$ip_address string not A standard format address.

Return values

int

the IPv4 address or false if ip_address is invalid.

Other resources

Official ip2long 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.