Retrieves the local network IP address for the primary network interface.
getIP(bool $long = false): string|integer
long (bool) : If set to true, IPv4 addresses will be returned as a long integer. ^(optional)^
true
(string|integer) : Returns IP address.
$cphp->getIP() = 127.0.0.1 $cphp->getIP(true) = 2130706433
reservedIP | validIP
Home | CoreyPHP | IP Operations
There was an error while loading. Please reload this page.