how to make array_search start from 0?
| From: | andy | Date: | Thu, 25 Apr 2002 16:30:06 +0000 |
| Subject: | how to make array_search start from 0? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-94578@lists.php.net to get a copy of this message | ||
Hi there,
I am passing an array through the URL with a ',' inbetween:
var=php,mysql,super
Parsing is done with: explode (',',$var). This gives me an array starting
with 0
Later on I have to search for lets say php with array_search.
Unfortunatelly array_search requires an array starting with 1. So php is not
found.
Does anybody know a workaround for this?
Thanx,
Andy