Hi to all ;)
I use OOP with PHP4 and i don't understand something.
I have 2 classes VISIT & PLANNING like that:
class clVISIT {
var $when;
var $where;
//constructor
function clVISIT($_when,$_where) {
$this->when = $_when;
$this->where = $_where;
}
}
class clPLANNING {
var $who;
var $visit = array();
//constructor
function ClPLANNING($_who) {
$this->who = $_who;
for ($i=0;$i<10;$i++) { $visit = new clVISIT("foo".$i , "foobar".$i ) ; }
}
}
Ok, in the last constructor, we can see that i create new clVISIT
object. My question is: how can i delete some of them in the same
constructor ? is there a word like "new" but to delete ?
regards,
f.