You are here: Re: selected index « PHP « IT news, forums, messages
Re: selected index

Posted by Al on 10/25/05 15:54

Ross wrote:
> Hi,
>
> I have an array
>
> $people= array ("ross", "bob", "chris")
> I have a variable
>
> $selected_person = "chris"
>
>
>
> I want to do the find out the index of the $selected_person in the $people
> array. Is there a function that can do this??
>
> ta,
>
>
>
> Ross

It appears you are learning php.

I suggest that you will find it very rewarding to learn the array functions. I certainly did when I first started work
with php.

There is an array function that does exactly what you want.

 

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

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