Vincent Dupont wrote:
Hi,
could anyone help on this 'by reference' problem.
I have 2 classes. The main class as a child class.
The child class has properties (array)
I would like to be able to manipulate the child's properties even after the child has
been inserted into the main class.
Does this
Not sure over here, but isn't it
$main-setChild($child1);
Vincent Dupont wrote:
Hi,
could anyone help on this 'by reference' problem.
I have 2 classes. The main class as a child class.
The child class has properties (array)
I would like to be able to manipulate the child's properties even after
Lill example:
[...]
$child1-setproperty(first);//displayed
$main-setChild($child1);
$child1-setproperty(second); //NOT DISPLAYED
[...]
$child1 is passed to $main with property 'first'. Later on
you update $child1, but not $main-child, as they are not
the same objects ( equal but not same ).
So i
3 matches
Mail list logo