You are here: Re: [PHP] How do I start at a specific position in an array? Is there « PHP « IT news, forums, messages
Re: [PHP] How do I start at a specific position in an array? Is there

Posted by M. Sokolewicz on 01/09/05 16:59

Tr wrote:
> Brent Clements wrote / napísal (a):
>
>> I know this is a simple question because I could easily write a loop
>> to move to the specific position in the array, but I want to know is
>> there a function to move the array pointer position to a specific
>> position in the array?
>>
>> Thanks,
>> Brent
>>
>>
>>
> next($array)
> prev($array)
> current($array)
>
> trobi
that's not a SPECIFIC place in the array, that's just current, next and
previous. AFAIK there is no way to explicitly set the internal pointer
of the array to a spcified place. I used a function which basically
looped trough the array until it got to the correct depth, and then
returned it by reference....but it's not very efficient :S

 

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

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