News for hackers. Stuff that matters.
Re:46 useful PHP code snippets by oneeyedpigeon on Thursday August 06, 2015 @11:54AM (#10017329)
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 ...

There are no comments on this comment yet.