Destructor til objekter
Findes der en standard destroy funktion til objecter i PHP3?Hvis ikke, hvordan laves den så?
Her er min klasse:
class TPerson {
var $firstname;
var $lastname;
var $adr;
var $zip;
var $city;
var $phone;
var $email;
/*
** CONSTRUCTOR
*/
function TPerson($firstname, $lastname, adr, $zip, $city, $pho, $email) {
$this -> firstname = $firstname;
$this -> lastname = $lastname;
$this -> adr = $adr;
$this -> zip = $zip;
$this -> city = $city;
$this -> phone = $pho;
$this -> email = $email;
}
} //Class person