Results of 1 - 1 of about 1 for anObject (0.001 sec.)
- is_callable — 引数が、現在のスコープから関数としてコール可能な値かどうかを調べ... 9414
- is_callable (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) is_callable — 引数が、現在のスコープから関数としてコール可能な値かどうかを調べる 説明 function is_callable ( mixed $value , bool $syntax_only = false , string &$callable_name = null ): bool
... (12) "someFunction" 例2 配列が関数としてコールできるかを調べる <?php class SomeClass { public function someMethod () {} } $anObject = new SomeClass (); $methodVariable = [ $anObject , 'someMethod' ]; var_dump ( is_callable ( $methodVariable , true , $cal ...
-
https://man.mtool.work/php/8.3/function.is-callable.html
PREV
1
NEXT