Returns the valid IP address or false if no valid IP address was found.
public getValidIpAddress ( mixed $source = null ) : string | false | ||
$source | mixed | (optional) The source data. If omitted, the class will use the value passed to Whip::setSource or fallback to $_SERVER. |
Résultat | string | false | Returns the IP address (as a string) of the client or false if no valid IP address was found. |