I RTM
but I couldn't find any nice answer to this question, so here is it:
set_error_handler('error::function')
)?set_error_handler
expects a value of the pseudo-type callback. And in the examples there you can see that there are two ways to specify a static method:
set_error_handler(array('Class', 'method'));
// since PHP 5.2.3
set_error_handler('Class::method');
Yes; this syntax works:
set_error_handler('error::function');
As stated in the doc, you just have to pass a valid callback. (dead link)http://php.net/manual/en/language.pseudo-types.php#language.types.callback
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With