search

Home  >  Q&A  >  body text

About the usage of spl_autoload_register

spl_autoload_register([$this,'userAutoLoad'])

My php5.3.29

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

Re:ゼロからRe:ゼロから2669 days ago1297

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-11-02 22:09:53

    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

    reply
    0
  • Cancelreply