You also can use the @ operator to mute errors occuring in the constructor, e.g. @new.
?php / / Cette syntaxe est valable en PHP 3 et 4 class Constructor_Cart extends Cart {function Constructor_Cart ($item = "10", $num = 1) {$this - add_item ($item, $num);}} / / Création du caddie $default_cart = new Constructor_Cart; / / Création d'un vrai caddie $different_cart = new Constructor_Cart ("20", 17);?