ARRAY
I need some help to output this array
$a = array(
""._CHOOSE_=> '-Escoje Una ',
""._ANY_=> 'Any',
"1" => "Español",
"2" => "Ingles",
"3" => "Frances",
"4" => "Italiano",
"5" => "portugues",
"6" => "Chino",
""._NDISCLOSED_ => ''
);
example php code
echo ('array_values($a, 2)'); // I need this to return ENGLISH from the arry
can some one help me with this. thanks
echo $a['ENGLISH'];
This is how you echo values based on keys.
echo $a["2"]
is what you're looking for
BTW you don't need to do something like
""._CHOOSE_
as long as CHOOSE is a string, you can simply write
_CHOOSE_ => '-Escoje Una '
In your specific case you will need to type the echo like this:
echo $a['1']
where '1'
is key for your array.