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.

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

Reply via email to