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