I have this array in PHP:
Array
(
    [en-CA] => English
    [fr-CA] => Français
    [es-ES] => Español
)
I would like to get the language name from the key.
So I made this but it doesn't work:
$lang = "en-CA";
$curLang = array_search($lang, $languages);
$curLang returns me nothing.
Thanks.
 
     
     
    