简体   繁体   中英

PHP's filter_var, is it a good modern solution?

How reliable is filter_var() ? Do you find it useful? Is it a good solution to validating a user's input?

Although I have not yet used it in any projects, I have tried it out a bit and all of the filters that I tried seem to work very well - and its a lot more elegant a solution than the messy regexes that I currently use. I certainly think it is quite a useful function that I will definitely be using in the future.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM