You are here: Re: array keys « PHP Programming Language « IT news, forums, messages
Re: array keys

Posted by ZeldorBlat on 08/22/07 02:16

On Aug 21, 9:58 pm, pc <chavanpr...@gmail.com> wrote:
> I was wondering if there is a more gracious way to write the below
> code:
>
> //$input is an array .I just need its 0th and 2nd key-not the 1st.I
> want to avoid using temp
>
> $temp=array_keys($input);
> print $temp[0];print $temp[2];
>
> Thanks in advance!
> PC

Not really. Why is it such a problem to use $temp ?

 

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

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