Can you use a custom filter with PHP filter_var() and filter_input()
PHP Filters are pretty cool, but what do you do if the filters don't quite match what you want? Can you create a custom开发者_Python百科 filter?
Yes, you can use FILTER_CALLBACK
and provide your own filter function (as callback).
精彩评论