Re: selected index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



try array_search()

Sincerely,
Rosty Kerei
<rosty.kerei@xxxxxxxxx>

""Ross"" <ross@xxxxxxxxxxxxx> wrote in message 
news:86.83.22886.13B1E534@xxxxxxxxxxxxxxx
> 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 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux