Posted by Marcin Dobrucki on 05/31/06 07:06
iavian wrote:
> i want to modify an array in foreach loop
>
> foreach($array as $ele){
> $ele = $some_random_string;
> }
>
> i should see here the modified $array .
Alternatively, you could use the array_walk() or
array_walk_recurssive() functions, which will give you some more
flexibility.
Navigation:
[Reply to this message]
|