This filter could be either a validating filter or a sanitizing filter. That’s because it calls a user defined callback function to do the filtering.

As we explore the filtering functions next, you’ll get a better idea of how all of these filters work and why you may want to use them. For now, you have a complete list of PHP’s filters in three categories: validation, sanitizing, and now “other”.