Lines Matching refs:is_callable
2 Test is_callable() function : usage variations - on objects
8 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
14 Description: use is_callable() on given $method to check if the array
23 var_dump( is_callable($method) );
24 var_dump( is_callable($method, true) );
25 var_dump( is_callable($method, false) );
26 var_dump( is_callable($method, true, $callable_name) );
28 var_dump( is_callable($method, false, $callable_name) );
34 echo "\n*** Testing is_callable() on objects ***\n";
87 /* check is_callable() on static method */
88 echo "\n** Testing behavior of is_callable() on static methods **\n";
89 var_dump( is_callable('object_class::foo()', true) ); //expected: true
90 var_dump( is_callable('object_class::foo()') ); //expected: false
92 echo "\n** Testing normal operations of is_callable() on objects **\n";
132 *** Testing is_callable() on objects ***
134 ** Testing behavior of is_callable() on static methods **
138 ** Testing normal operations of is_callable() on objects **