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 Thomas Goyne on 01/10/05 04:01

On Sun, 09 Jan 2005 23:58:18 +0100, M. Sokolewicz <tularis@php.net> wrote:

> can't recall what it was exactly, but I believe it was a case where I
> didn't know the key of the array, nor the value, but knew the "place" in
> the array.
> Can't exactly remember what it was... I am now thinking that what I'm
> saying in my last line can be done easily by using array_values and
> using a numeric key....
>
> But... as I said, I can't recall what it was. In the end I simply
> rewrote whatever it was to use a more efficient way of handling things

array_keys($arr)[$place] will get you the key for the current place in the
array.



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

http://www.smempire.org

 

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

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