Re: [PHP] "searching" arrays

2001-08-14 Thread Evan Nemerson
Try something like this if(isset($countries["singapore"])) { do something... }; or, alternatively, if(!isset($countries["singapore"])) { echo "Not a country" }; On Tuesday 14 August 2001 19:12, you wrote: > Hi, > > Is there a possibility to search arrays in PHP? For example I'd like to > fi

[PHP] "searching" arrays

2001-08-14 Thread Raphael Pirker
Hi, Is there a possibility to search arrays in PHP? For example I'd like to find out the index-number of $countries["singapore"]; but only if that country exists in the array. TIA, Raphael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi