title: Search Multidimensional Array in PHP
body: <p>How can I search the following multidimensional array for the string 'uk'?</p>
  
  <pre><code>array(43)
  {
    [0]=&gt; array(1) { ["country"]=&gt; string(9) "Australia" }
    [1]=&gt; array(1) { ["country"]=&gt; string(7) "Bahrain" }
    [2]=&gt; array(1) { ["country"]=&gt; string(7) "Belgium" }
    [3]=&gt; array(1) { ["country"]=&gt; string(8) "Bulgaria" }
    [4]=&gt; array(1) { ["country"]=&gt; string(6) "Canada" }
    [5]=&gt; array(1) { ["country"]=&gt; string(7) "Croatia" }
    [6]=&gt; array(1) { ["country"]=&gt; string(6) "Cyprus" }
    [7]=&gt; array(1) { ["country"]=&gt; string(14) "Czech Republic" }
    [8]=&gt; array(1) { ["country"]=&gt; string(7) "Denmark" }
    [9]=&gt; array(1) { ["country"]=&gt; string(7) "Finland" }
    [10]=&gt; array(1) { ["country"]=&gt; string(7) "Germany" }
    [11]=&gt; array(1) { ["country"]=&gt; string(6) "Greece" }
    [12]=&gt; array(1) { ["country"]=&gt; string(9) "Hong Kong" }
    [13]=&gt; array(1) { ["country"]=&gt; string(7) "Hungary" }
    [14]=&gt; array(1) { ["country"]=&gt; string(7) "Iceland" }
    [15]=&gt; array(1) { ["country"]=&gt; string(5) "India" }
    [16]=&gt; array(1) { ["country"]=&gt; string(4) "Iran" }
    [17]=&gt; array(1) { ["country"]=&gt; string(6) "Israel" }
    [18]=&gt; array(1) { ["country"]=&gt; string(5) "Italy" }
    [19]=&gt; array(1) { ["country"]=&gt; string(5) "Japan" }
    [20]=&gt; array(1) { ["country"]=&gt; string(5) "Korea" }
    [21]=&gt; array(1) { ["country"]=&gt; string(6) "Kuwait" }
    [22]=&gt; array(1) { ["country"]=&gt; string(5) "Malta" }
    [23]=&gt; array(1) { ["country"]=&gt; string(8) "Mongolia" }
    [24]=&gt; array(1) { ["country"]=&gt; string(11) "Netherlands" }
    [25]=&gt; array(1) { ["country"]=&gt; string(6) "Norway" }
    [26]=&gt; array(1) { ["country"]=&gt; string(8) "Pakistan" }
    [27]=&gt; array(1) { ["country"]=&gt; string(6) "Poland" }
    [28]=&gt; array(1) { ["country"]=&gt; string(7) "Romania" }
    [29]=&gt; array(1) { ["country"]=&gt; string(6) "Russia" }
    [30]=&gt; array(1) { ["country"]=&gt; string(9) "Singapore" }
    [31]=&gt; array(1) { ["country"]=&gt; string(8) "Slovakia" }
    [32]=&gt; array(1) { ["country"]=&gt; string(12) "South Africa" }
    [33]=&gt; array(1) { ["country"]=&gt; string(13) "South America" }
    [34]=&gt; array(1) { ["country"]=&gt; string(5) "Spain" }
    [35]=&gt; array(1) { ["country"]=&gt; string(6) "Sweden" }
    [36]=&gt; array(1) { ["country"]=&gt; string(11) "Switzerland" }
    [37]=&gt; array(1) { ["country"]=&gt; string(6) "Taiwan" }
    [38]=&gt; array(1) { ["country"]=&gt; string(10) "Tajikistan" }
    [39]=&gt; array(1) { ["country"]=&gt; string(2) "UK" }
    [40]=&gt; array(1) { ["country"]=&gt; string(20) "United Arab Emirates" }
    [41]=&gt; array(1) { ["country"]=&gt; string(24) "United States of America" }
    [42]=&gt; array(1) { ["country"]=&gt; string(7) "Vietnam" }
  }
  </code></pre>