private function ip($ip)
    {
        return ((false === ip2long($ip)) || (long2ip(ip2long($ip)) !== $ip)) ? false : true;
    }
private function ip($ip)
    {
        return ((false === ip2long($ip)) || (long2ip(ip2long($ip)) !== $ip)) ? false : true;
    }
private function ip ( $ ip ) { return ( ( false === ip2long ( $ ip ) ) || ( long2ip ( ip2long ( $ ip ) ) !== $ ip ) ) ? false : true ; }
Check if is ip

@param string $ip
@return boolean
Check if is ip