Posted By

Shifter on 07/12/09


Tagged

url validate filtervar


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

DrewDouglass
irishsk
d0ri0
zreedeecom
qubestream


Validate Url


 / Published in: PHP
 

URL: http://php.net/manual/en/function.filter-var.php

With PHP 5.2.0 "filter_var" function

  1. function fnValidateUrl($mValue)
  2. {
  3. return filter_var($mValue, FILTER_VALIDATE_URL);
  4. }

Report this snippet  

You need to login to post a comment.