FILTER_VALIDATE_URL

PHP Logo

Revisiting filter_var() and FILTER_VALIDATE_URL

1st April 2011 - 7 minutes read time

Quite 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 only changed since the initial release, but that a number of flags can be added to change the way that this function works. Here are the flags available.

Read the full article