function similar to filter_var() in php4.3 ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Parker

    function similar to filter_var() in php4.3 ?

    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


  • Janwillem Borleffs

    #2
    Re: function similar to filter_var() in php4.3 ?

    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:



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




    HTH;
    JW


    Comment

    Working...