code_junkie

PHP - call function in object with set_error_handler()

Nov 12th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. set_error_handler('$this->appendError');
  2.  
  3. // Type 3: Object method call
  4. $obj = new MyClass();
  5. call_user_func(array($obj, 'myCallbackMethod'));
  6.  
  7. // Type 3: Object method call
  8. $obj = new MyClass();
  9. call_user_func(array($obj, 'myCallbackMethod'));
  10.  
  11. // Type 3: Object method call
  12. $obj = new MyClass();
  13. call_user_func(array($obj, 'myCallbackMethod'));
Add Comment
Please, Sign In to add comment