Destructors in Pear

From: Date: Wed, 15 Dec 2004 06:17:53 +0000
Subject: Destructors in Pear
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16239@lists.php.net to get a copy of this message
Is correct this? <?php include_once 'Pear.php'; class Killer extends PEAR { var $a; var $b; function Killer() {
       $this->PEAR();
       $this->a = 'Pear';
       $this->b = 'Asparagi';
} function comingBackToLife() {
       print 'Live: ' . $this->a . '<br>Live: ' . $this->b;
} function _Killer() {
       // Is correct to use null to Killer the var, or I need unset... atribute = ''...?
       $this->b = null;
       print '<br>Live: ' . $this->a . '<br>Live: ' . $this->b;
} } $language = new Killer(); $language->comingBackToLife(); ?> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.5.1 - Release Date: 13/12/2004

« previous php.pear.general (#16239) next »