Reply to [suspicious - maybe spam] Re: [PHP] How do I get the first element's key of an array of objects?

Your name:

Reply:


Posted by Mattias Thorslund on 04/09/05 08:22

Chris W. Parker wrote:

>Read www.php.net/array_keys and you shall have your answer.
>
>>From the php docs:
>
><?php
>
> $array = array(0 => 100, "color" => "red");
> print_r(array_keys($array));
>
>?>
>
>Will output.
>
>Array
>(
> [0] => 0
> [1] => color
>)
>
>

Duh! Yes, I replied a little too fast on that one.

/Mattias



--
More views at http://www.thorslund.us

[Back to original 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

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