PHP function ip2long()

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

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.