What is the role of $class? Other files do not have the $class variable. How does it get the path of other files?
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?
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?