Jun
9
2013

Validate URIs

/**
 * Validate URL's
 * @access public
 * @param string url
 * @return bool
 */
function valid_url( $url )
{
    if( filter_var( $email, FILTER_VALIDATE_URL ) )
    {
        return true;
    }
    else
    {
        return false;
    }
}

Leave a comment