Re: foreach - Array
- From: Marcin Dobrucki <Marcin.Dobrucki@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 07:06:33 GMT
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.
.
- References:
- foreach - Array
- From: iavian
- foreach - Array
- Prev by Date: Need advice on search engine
- Next by Date: Re: Help with php to MySql...
- Previous by thread: Re: foreach - Array
- Next by thread: php mail() issues
- Index(es):