Reply to Re: Copying an Object passes Object by Reference?!

Your name:

Reply:


Posted by jerrygarciuh on 01/18/08 18:45

On Jan 18, 12:14 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(jerrygarciuh)
>
> >I discovered this by accident today. How should I get an object's
> >data into another variable and make modifications without affecting
> >the original object?
>
> Clone it:
>
> $foo = new Object();
> $bar = clone $foo;
>
> http://www.php.net/manual/en/language.oop5.cloning.php
>
> Micha

Thanks Micha!

JG

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация