public static function validateUrl($value)
    {
        if (($url = parse_url($value)) && ! empty($url['scheme']) && ! empty($url['host'])) {
            return true;
        }
        return false;
    }
public static function validateUrl($value)
    {
        if (($url = parse_url($value)) && ! empty($url['scheme']) && ! empty($url['host'])) {
            return true;
        }
        return false;
    }
public static function validateUrl ( $ value ) { if ( ( $ url = parse_url ( $ value ) ) && ! empty ( $ url [ 'scheme' ] ) && ! empty ( $ url [ 'host' ] ) ) { return true ; } return false ; }
Validates that the input value is an url

@param mixed $value the value of the input parameter
@return mixed
Validates that the input value is an url