RE: [PHP] Array Search Problem

2010-03-11 Thread Alice Wei
direction. Alice > From: rene7...@gmail.com > Date: Thu, 11 Mar 2010 07:12:15 +0100 > Subject: Re: [PHP] Array Search Problem > To: aj...@alumni.iu.edu > CC: php-general@lists.php.net > > (almost) all the tricks are in the comments of the help page for a > function, on php.ne

Re: [PHP] Array Search Problem

2010-03-10 Thread Rene Veerman
(almost) all the tricks are in the comments of the help page for a function, on php.net but all functions accept only a given (and usually documented) set of parameter(type)s, so you'll probably have to prepare the var, or even call the function in a loop, outputting to yet another descriptively n

RE: [PHP] Array Search Problem

2010-03-10 Thread Alice Wei
> > did you read the help for those functions on php.net? Yes, I found a "recursive" way to find out the "index" like I wanted, by doing something like $from = explode("-", $from); $state_colors= explode("-", $state_colors); $change = explode("-",$change); $count = count($new_array); $i=0; f

Re: [PHP] Array Search Problem

2010-03-10 Thread Rene Veerman
did you read the help for those functions on php.net? On Wed, Mar 10, 2010 at 4:12 PM, Alice Wei wrote: > > Hi, > >  I have the code as shown in the following that I am trying to create the > image of based on the file loaded into the file and additional edits. The > problem here appears to be