public static function validateURI($uri) {
        if(!empty(trim($uri))){
            return filter_var(trim($uri), FILTER_VALIDATE_URL);
        }
        return false;
    }
public static function validateURI($uri) {
        if(!empty(trim($uri))){
            return filter_var(trim($uri), FILTER_VALIDATE_URL);
        }
        return false;
    }
public static function validateURI ( $ uri ) { if ( ! empty ( trim ( $ uri ) ) ) { return filter_var ( trim ( $ uri ) , FILTER_VALIDATE_URL ) ; } return false ; }
Validates that a URI is valid
@param string $uri This should be the URI you are checking
@return boolean If the URI is valid will return true else returns false
Validates that a URI is valid