Re: making changes on arrays (SOLVED)
| From: | Katie Marquez | Date: | Fri, 30 Apr 2004 04:46:18 +0000 |
| Subject: | Re: making changes on arrays (SOLVED) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185007@lists.php.net to get a copy of this message | ||
Very cool, Travis! Thank you for answering so
quickly! You guys work fast around here :)
Katie
--- Travis Low <travis@dawnstar.com> wrote:
> Hi Katie,
>
> The foreach construct operates on copies of the
> array values. I usually just
> stick to C-like syntax:
>
> for( $i = 0; $i < count( $array ); $i++ )
> {
> $array[$i] = doSomething( $array[$i] );
> }
>
> cheers,
>
> Travis
>
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover