|
Posted by Thomas Hamacher on 10/25/07 22:17
groups2@reenie.org schrieb:
> On Oct 25, 2:05 pm, JustinCarmony <carm...@gmail.com> wrote:
>> You can also explicitly code what is to happen when an object is
>> cloned by using the __clone() class function.
> $label=new geocellobj();
> $label->setalign('right');
> array($label->settext('unique test'), $label->settext('different
> text));
> I don't think cloning will help me.
Well, just clone the objects before storing them into the array:
array(clone $label->settext(...), ...)
Navigation:
[Reply to this message]
|