array_search does not find the first element

From: Date: Wed, 31 Mar 2004 12:20:06 +0000
Subject: array_search does not find the first element
Groups: php.general 
Request: Send a blank email to php-general+get-181925@lists.php.net to get a copy of this message
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 out of an xml webservice, so I can not rally modify the results. array_search($check_date, $results) Thanx for any help on that. Merlin

« previous php.general (#181925) next »