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'?
See Question&Answers more detail:osI 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'?
See Question&Answers more detail:os