About the usage of spl_autoload_register
Re:ゼロから
Re:ゼロから 2017-11-02 11:10:05
0
1
1269

spl_autoload_register([$this,'userAutoLoad'])

My php5.3.29

[$this,'userAutoLoad']What does this mean?

Re:ゼロから
Re:ゼロから

reply all(1)
PeterZhu
  1. sql_autoload_register() function can load user-defined: automatic loading function

  2. $this refers to the currently instantiated object, userAutoLoad is $this The methods in this object can realize automatic loading of classes

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template