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

Posted by pc on 08/22/07 01:58

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

 

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

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