GiustoOriginariamente inviato da pippuccio76
Il costruttore può usare o la function construct o una funzione con lo stesso identico nome della classe(per la retrocompatibilità),non è quello il problema...
http://www.php.net/manual/en/language.oop5.decon.php
ma comunque è sconsigliato.For backwards compatibility, if PHP 5 cannot find a __construct() function for a given class, and the class did not inherit one from a parent class, it will search for the old-style constructor function, by the name of the class.


Rispondi quotando