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
> 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 additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to