Revisiting filter_var() and FILTER_VALIDATE_URL
… a while ago I looked at using the filter_var() function to validate URL's using the FILTER_VALIDATE_URL flag and someone pointed out recently that this function has not … Require the scheme (eg, http://, ftp:// etc) within the URL. FILTER_FLAG_HOST_REQUIRED Require host of the URL (eg, … Revisiting filter_var() and FILTER_VALIDATE_URL …