3 ms·
To be fair, filter_var has a pretty screwy return type of its own but, yeah, if you're going to bother wrapping it, you might as well clean that up: return f
by oneeyedpigeon 11y ago
To be fair, filter_var has a pretty screwy return type of its own but, yeah, if you're going to bother wrapping it, you might as well clean that up:
return filter_var(...) !== FALSE;
might do it ...