Hi,
I've got an multidimensional array
$ret = $country_code[$countryCode][$langCode];
Now I want to see if $countryCode is even in that array, because if it's
not, it doesn't make many sense to look further for $langCode.
Eg.
$country_code = array('BE' =>
array ('en' => 'Belgium',
'nl' => 'België'),
'NL' =>
array ('en' => 'Netherlands',
'nl' => 'Nederland'),
);
Searching for 'BE' would make sense, but 'LP' wouldn't.
I already tried:
$arr = array($country_code['LP']);
if (sizeof($arr) == 0)
print "LP not found!"
But that doesn't seem to work :-s. Would sb have any suggestions?
Greetings,
Mattias