|
Posted by Tom on 01/04/08 19:54
On Fri, 04 Jan 2008 08:30:52 -0500, Jerry Stuckle wrote...
>
>adam.timberlake@gmail.com wrote:
>> I was reading the following article yesterday:
>>http://www.talkphp.com/vbarticles.php?do=article&articleid=41&title=using-the-internal-array-pointers-to-access-elements-in-arrays
>>
>> What struck me while reading it was how very little we hear about the
>> array internal pointers !! I've been in PHP now for a good 2 years,
>> and I've never heard these little guys mentioned before.
>>
>> My question is... what do you use internal pointers for, and why?
>>
>
>I use them a fair amount. Sometimes you need to run through an array,
>and foreach() just doesn't do what you need (or makes the code more
>complicated).
>
I've gotten into the habit of using a for or foreach loop when I need to look at
all the values. I haven't tried using these before, but definitely could come in
handy down the road.
Tom
--
Newsguy 20 GB Free Trial Accounts
http://newsguy.com/overview.htm
Navigation:
[Reply to this message]
|