MethodCallback.php 360 B

12345678910111213141516171819202122
  1. <?php
  2. class MethodCallback
  3. {
  4. public static function staticCallback()
  5. {
  6. $args = func_get_args();
  7. if ($args == ['foo', 'bar']) {
  8. return 'pass';
  9. }
  10. }
  11. public function nonStaticCallback()
  12. {
  13. $args = func_get_args();
  14. if ($args == ['foo', 'bar']) {
  15. return 'pass';
  16. }
  17. }
  18. }