Results of 1 - 1 of about 1 for RelativeName (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 ):
... ックスラッシュが付かない <?php spl_autoload_register (static function ( $class ) { var_dump ( $class ); }); class_exists ( 'RelativeName' ); class_exists ( 'RelativeName\\WithNamespace' ); class_exists ( '\\AbsoluteName' ); class_exists ( '\\AbsoluteName\\Wit ... hNamespace' ); ?> 上の例の出力は以下となります。 string(12) "RelativeName" string(26) "RelativeName\WithNamespace" string(12) "AbsoluteName" string(26) "AbsoluteName\WithNamespace" 参考 __autoload ...
-
https://man.mtool.work/php/8.3/function.spl-autoload-register.html
PREV
1
NEXT