|
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]
|