Posted by Colin McKinnon on 05/31/06 21:20
Adam Plocher wrote:
> foreach ($array as $key=>$val)
> {
> $arrayOut[$key] = $some_random_string;
> }
>
> $array = $arrayOut;
>
> that should work (not tested).
but:
foreach ($array as $key => $val) {
$array[$key] = $some_random_string;
}
is cleaner.
C.
Navigation:
[Reply to this message]
|