Posted by R. Rajesh Jeba Anbiah on 06/02/06 11:06
Colin McKinnon wrote:
<snip>
> foreach ($array as $key => $val) {
> $array[$key] = $some_random_string;
> }
>
> is cleaner.
When you have to modify the array element, use of foreach is
discouraged because of overhead
<http://www.phparch.com/cert/ZPCPB_sample.pdf>
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Navigation:
[Reply to this message]
|