By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

function similar to filter_var() in php4.3 ?

P: n/a
I understand for php5 there is function filter_var as in
filter_var($var, FILTER_SANITIZE_URL);Is there similar function in php4.3?
Thank you
May 12 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Peter Parker wrote:
I understand for php5 there is function filter_var as in
filter_var($var, FILTER_SANITIZE_URL);Is there similar function in
php4.3? Thank you
The function implements RFC 1738 validation rules for the
FILTER_SANITIZE_URL flag:

http://www.faqs.org/rfcs/rfc1738.html

There isn't a real equivalent in PHP < 5.2, but you might be able to do some
basic validation using parse_url:

http://www.php.net/parse_url
HTH;
JW
May 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.