Here's some code that I have trouble with. I don't know why, I feel I have used this code many times without any problems.
$people['firstname'] = "Fred";
$t = "firstname";
echo $people[$t] ;
echo returns nothing, whereas i expect it to return Fred.
Thanks for your help, Marc
$CCodes2=$CCodes[$country];but when i useecho $CCodes["LY"];gives me correct value here is the array$CCodes=array("BH"=>"BHD","DZ"=>"DZD","EG"=>"EGP","IQ"=>"IQD","JO"=>"JOD","KW"=>"KWD","LB"=>"LBP","LY"=>"LYD", "MA"=>"MAD","OM"=>"OMR","QA"=>"QAR","SA"=>"SAR","SD"=>"SDG","TN"=>"TND","YE"=>"YER","MR"=>"MRO");