PHP Classes

filter_var

Recommend this page to a friend!

      Abstract Validation Class  >  All threads  >  filter_var  >  (Un) Subscribe thread alerts  
Subject:filter_var
Summary:Already in PHP
Messages:2
Author:Eric Wagener
Date:2014-05-03 10:26:03
Update:2014-05-04 11:35:39
 

  1. filter_var   Reply   Report abuse  
Picture of Eric Wagener Eric Wagener - 2014-05-03 10:26:03
The function filter_var already does this job. Maybe you should check this.

nl3.php.net/manual/en/function.filt ...

This class has too many different sources anyway for such a simple functionality in my opinion.

  2. Re: filter_var   Reply   Report abuse  
Picture of simone simone - 2014-05-04 11:35:39 - In reply to message 1 from Eric Wagener
Examples aren't very indicative because they are based on simple check like String, Ipv4 , etc.. For these purposes just use filter_var() function as you said.
IMHO, this class is useful for complex data types, array of objects, multidimensional array , and the most different checks.

Finally, thanks for your comment on my package.

Goodbye :)