Does the PHP autoloader function also work with static method calls?

前端 未结 6 1340
耶瑟儿~
耶瑟儿~ 2020-12-17 08:53

I slightly remember that autoload worked with the new statement. Now how about when I have several utility classes and I want to autoload these? And I only use

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-17 09:38

    Surely the best, and fastest way is to try it?

    From the docs there is nothing that mentions new being needed.

提交回复
热议问题