What is the role of $class? Other files do not have the $class variable. How does it get the path of other files?
autoload2021-09-15 18:05:55
First of all, you need to understand what is the role of automatic loading? When you introduce a class, you are instantiating an object new People. When you use this class, aren't you providing parameters for your automatic loading method?