Memory Map
Comparison: Value Passing
If you pass an object to a function, What is actually passed is an address
contrast
}
Progress:
__construct() construction method is new in php5
this memory analysis
This summary
Note: There can only be one PHP construction method and cannot be overloaded! ! Those who have studied Java, C#, etc. should pay attention to the difference
The above demo reports an error and the method is repeatedly defined
The above introduces Han Shunping's PHP video notes 62-67 PHP object-oriented, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.