Core/Validate.php
public static function isIp($input = false) {

        if ($input && !filter_var($input, FILTER_VALIDATE_IP) === false) {

            return true;
        }

        return false;
    }
public static function isIp($input = false) {

        if ($input && !filter_var($input, FILTER_VALIDATE_IP) === false) {

            return true;
        }

        return false;
    }
public static function isIp ( $ input = false ) { if ( $ input && ! filter_var ( $ input , FILTER_VALIDATE_IP ) === false ) { return true ; } return false ; }
Check if given input is a valid IP address.
@param mixed input
@return boolean
Check if given input is a valid IP address .