Is there a difference between using use and passing the class path to a method?

后端 未结 0 354
北荒
北荒 2021-01-06 18:01

In PHP there is two ways to use classes :

1.

use The\\Class\\NameSpace\\MyClass;
...
public function myFunction(MyClass $         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题