A typical use for this exception, is in conjunction with the is_callable() function.
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
未定義の関数をコールバックが参照したり、引数を指定しなかったりした場合にスローされる例外です。
A typical use for this exception, is in conjunction with the is_callable() function.
For example: function foo($arg) { $func = 'do' . $arg; if (!is_callable($func)) { throw new BadFunctionCallException('Function ' . $func . ' is not callable'); }}