hi
i have some questions about spl_autoload_register when the first param is null.
eg. spl_autoload_register(null, false);
the manul describe" If no parameter is provided, then the default implementation of spl_autoload() will be registered." now why the follow can't run
<?php
spl_autoload_register(NULL, false);
spl_autoload_extensions('.class.php, .php');
$demo2 = new Demo2();//Demo2.class.php is exist
?>
the fllow can run
<?php
spl_autoload_extensions('.class.php, .php');
spl_autoload('Demo2');
$demo2 = new Demo2();
?>
so , what's the meaning of spl_autoload_register(null, false)? anyone can give me some examples, thanks.