| 
	
 | 
 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] 
 |