How can I search the following multidimensional array for the string \'uk\'?
array(43) { [0]=> array(1) { [\"country\"]=> string(9) \"Australia\" }
If you are using (PHP 5 >= 5.5.0) there is a better and simple way:
if(array_search('UK', array_column($array, 'country')) !== false ){ echo 'found'; }else{ echo 'Not found'; }