The method name and class name are consistent. The default is the constructor. Is it 5.3 or 7.1 or later?
小生我怕怕啊
小生我怕怕啊 2018-09-06 12:39:34
0
1
1204

Which version does this writing method apply to?

小生我怕怕啊
小生我怕怕啊

http://hmgood.wonzan.com/

reply all(1)
jesse

Before version 5, the constructor did not have an independent name. The function whose method name was the class name was the constructor of the current class. After version 5, __construct was introduced as the constructor of the class, and the same applies to version 7.

QQ截图20180906125607.jpg

QQ截图20180906125734.jpg

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!