I'm writing static Filter class that uses PHP filter functions.

Here I'm trying to call static method for FILTER_CALLBACK. I didn't get error messages - nothing is returned. Can I use callback function with static methods?

filter_var($value, FILTER_CALLBACK, array('options'=>'self::datetimeValidation'));

    aopen wrote:

    Can I use callback function with static methods?

    Yep; FILTER_CALLBACK would be array('classname','methodname').

      Write a Reply...