class DateTime {function DateTime() {/ / empty constructor} function now() {return date("Y-m-d H:i:s");}} class Report {var $_dt = new DateTime(); / / more properties... function Report() {/ / initialization code...} function generateReport() {$dateTime = $_dt - now(); / / more code...} / / more methods...} $rep = new Report();
?php class DateTime {function DateTime() {/ / constructeur vide} function now() {return date("Y-m-d H:i:s");}} class Report {var $_dt = new DateTime(); / / autres propri eacute;t eacute;s... function Report() {/ / initialisation du code...} function generateReport() {$dateTime = $_dt - now(); / / autre code} / / autres m eacute;thodes...} $rep = new Report();?