Home > Q&A > body text
沉睡の黑暗2017-09-25 12:04:58
It should be $this->age;
In fact, you can also use the magic method __construct($age), so new test(20) will be fine;
森2017-09-25 09:34:18
$this->test-> age What the hell is this
PHP中文网2017-09-25 09:26:13
$this->test-> What the hell
I don’t understand what is going on, but why can the program still run? Just a warning, not a fatal error