In PHP, filter_var(\'www.example.com\', FILTER_VALIDATE_URL) returns false. Is this correct? Isn\'t www.example.com a valid URL, or protoc
filter_var(\'www.example.com\', FILTER_VALIDATE_URL)
false
www.example.com
The scheme ("protocol") part is required for FILTER_VALIDATE_URL.
FILTER_VALIDATE_URL