I would like to find the value in an array using the key.
Like this:
$array=('us'=>'United', 'ca'=>'canada'); $key='ca';
How can I have the value 'canada'?
It's as simple as this :
$array[$key];
2.1m questions
2.1m answers
60 comments
57.0k users