RE: [PHP] Array query - finding the key for a value

2002-08-16 Thread Matt Schroebel
> From: Tim Fountain [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 16, 2002 7:51 AM > Subject: [PHP] Array query - finding the key for a value > > This may be a silly question, but I'm used to being able to find PHP > functions to do whatever I want, but I can't find one to do this! > > If

Re: [PHP] Array query - finding the key for a value

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 19:50, Tim Fountain wrote: > This may be a silly question, but I'm used to being able to find PHP > functions to do whatever I want, but I can't find one to do this! > > If I have an array like this: > > [0] -> 'apple'; > [1] -> 'pear'; > [2] -> 'orange'; > [3] -> 'apricot