Re: selected index

From: Date: Tue, 25 Oct 2005 12:41:38 +0000
Subject: Re: selected index
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-224623@lists.php.net to get a copy of this message
try array_search() Sincerely, Rosty Kerei <rosty.kerei@gmail.com> ""Ross"" <ross@aztechost.com> wrote in message news:86.83.22886.13B1E534@pb1.pair.com... > 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

« previous php.general (#224623) next »