Originariamente inviato da andreamk
In php il costruttore si definisce con
Codice PHP:
function __construct() { } 
Non con il nome della classe
Non del tutto corretto. In PHP4 come costruttore veniva utilizzato il metodo con lo stesso nome della classe.

Il PHP 5 supporta lo stesso comportamento per compatibilità all'indietro:

For backwards compatibility, if PHP 5 cannot find a __construct() function for a given class, it will search for the old-style constructor function, by the name of the class.