spl_autoload_register

  • spl_autoload_register ---- automatically call time
When using a class that does not exist 

when a class inherits a nonexistent time 

when a static method of accessing a class that does not exist 

when implementing the interface does not exist
  •  PHP7 previously used __autoload (), after using spl_autoload_register ()
Because class files are located in different paths, it may take multiple calls to load all class files

 

 

Guess you like

Origin www.cnblogs.com/saintdingspage/p/10987801.html