You are here: Re: Why are these so brilliantly hidden when it comes to PHP's functions...? « All PHP « IT news, forums, messages
Re: Why are these so brilliantly hidden when it comes to PHP's functions...?

Posted by Jerry Stuckle on 01/05/08 02:27

Tom wrote:
> 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

Yep, they do - especially when you want extra tests to exit the loop.
It can make your code cleaner.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация