Jump to content

BobbyPeng

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

BobbyPeng's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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.
  2. OK thank you very much .
  3. i know how to use spl_autoload_functions, spl_autoload_register, spl_autoload_unregister. but i want to know where and how to use the functions , such spl_autoload, spl_autoload_call, spl_autoload_extendsions. my understanding is spl_autoload_entendions can return the current list of extensions each separated by comma, and also i can set the extension. if i set the extension . That how it working.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.