src/Budkit/Validation/Validate.php
public static function isIP($address)
    {

        //Split the IP address of the form  into parts
        $parts = explode('.', $address);
        //=4 parts
        if (sizeof($parts) != 4) {
            return false;
        }
        foreach ($parts as $part):
            if (empty($part) || !static::number($part) || $part > 255) {
                return false;
            }
        endforeach;

        return true;
    }
public static function isIP($address)
    {

        //Split the IP address of the form  into parts
        $parts = explode('.', $address);
        //=4 parts
        if (sizeof($parts) != 4) {
            return false;
        }
        foreach ($parts as $part):
            if (empty($part) || !static::number($part) || $part > 255) {
                return false;
            }
        endforeach;

        return true;
    }
public static function isIP ( $ address ) { //Split the IP address of the form  into parts $ parts = explode ( '.' , $ address ) ; //=4 parts if ( sizeof ( $ parts ) != 4 ) { return false ; } foreach ( $ parts as $ part ) : if ( empty ( $ part ) || ! static :: number ( $ part ) || $ part > 255 ) { return false ; } endforeach ; return true ; }
Validates an ip address format

@param string $address

@return boolean True if it is a valid IP address, False if Not.
Validates an ip address format