Re: [PHP] array_search does not find the first element

2004-03-31 Thread John Holmes
Merlin wrote: I am trying to find values inside an array. This array always starts with 0. unfortunatelly array_search start searching with the array element 1. So the first element is always overlooked. Please read the text inside the big "Warning" box on the following page: http://us2.php.net/

Re: [PHP] array_search does not find the first element

2004-03-31 Thread Tom Rogers
Hi, Wednesday, March 31, 2004, 10:20:06 PM, you wrote: M> Hi there, M> I am trying to find values inside an array. This array always starts with 0. M> unfortunatelly array_search start searching with the array element 1. M> So the first element is always overlooked. M> How could I "shift" this a

[PHP] array_search does not find the first element

2004-03-31 Thread Merlin
Hi there, I am trying to find values inside an array. This array always starts with 0. unfortunatelly array_search start searching with the array element 1. So the first element is always overlooked. How could I "shift" this array to start with 1, or make array-search start with 0? The array comes