You are here: Re: PHP5, foreach and memory corruption « PHP Language « IT news, forums, messages
Re: PHP5, foreach and memory corruption

Posted by Stefan Rybacki on 08/22/05 12:34

Anze wrote:
>>>Of course, I'm looking for solution that would work in PHP4 too - in PHP5
>>>you can use foreach with '&' before $value.
>>
>>And you can't use & in PHP4?
>
>
> No - documentation for foreach construct says:
>
> "As of PHP 5, you can easily modify array's elements by preceding $value
> with &. This will assign reference instead of copying the value. "
>
> I guess that means I can't use that in PHP4... A lot of my code runs on PHP4
> so I must be sure I don't make incompatible changes.
>
> Regards,

Ok I see.

Stefan

>
> Anze

 

Navigation:

[Reply to this 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

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