php-general | 2004032
Date: 03/31/04
- Next message: Tom Rogers: "Re: [PHP] array_search does not find the first element"
- Previous message: Jason Wong: "Re: [PHP] finding certain dates in the future (again)"
- Next in thread: Tom Rogers: "Re: [PHP] array_search does not find the first element"
- Reply: Tom Rogers: "Re: [PHP] array_search does not find the first element"
- Reply: John Holmes: "Re: [PHP] array_search does not find the first element"
- Reply: Jason Barnett: "[PHP] Re: array_search does not find the first element"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Tom Rogers: "Re: [PHP] array_search does not find the first element"
- Previous message: Jason Wong: "Re: [PHP] finding certain dates in the future (again)"
- Next in thread: Tom Rogers: "Re: [PHP] array_search does not find the first element"
- Reply: Tom Rogers: "Re: [PHP] array_search does not find the first element"
- Reply: John Holmes: "Re: [PHP] array_search does not find the first element"
- Reply: Jason Barnett: "[PHP] Re: array_search does not find the first element"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

