« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for InexistentClass (0.000 sec.)
spl_autoload_register — 指定した関数を __autoload() の実装として登録する | PHP ... 9414
spl_autoload_register (PHP 5 >= 5.1.0, PHP 7, PHP 8) spl_autoload_register — 指定した関数を __autoload() の実装として登録する 説明 function spl_autoload_register ( ? callable $callback = null , bool $throw = true , bool $prepend = false ): ... ic function test ( $class ) { print '[[' . $class . ']]' ; } } spl_autoload_register ( __NAMESPACE__ . '\Foo::test' ); new InexistentClass ; ?> 上の例の出力は、 たとえば以下のようになります。 [[Foobar\InexistentClass]] Fatal error: Class 'Foobar\InexistentClass ...
https://man.mtool.work/php/8.3/function.spl-autoload-register.html
PREV 1 NEXT