title: PHP - array search get key value
body: <p>I have got an array as below,</p>
  
  <pre><code>$country = array ("01. USA","02. Russia","03. UK","04. India");
  </code></pre>
  
  <p>and i just wanted to search my array with this string <code>$str = "USA";</code> and it should return me the key where the value is. Is that possible. I tried using <code>array_search()</code> and its not working.</p>
  
  <p>Update:</p>
  
  <p>The actual array am having,</p>
  
  <pre><code>Array ( [0] =&gt; 01. Australian Dollar [1] =&gt; 06. Swedish Kroner [2] =&gt; 02. British Pound Sterling [3] =&gt; 07. Swish Frank [4] =&gt; 03. Canadian Dollar [5] =&gt; 08. U.S. Dollar [6] =&gt; 04. Japanese Yen Per 100 [7] =&gt; 09. Euro [8] =&gt; 05. Singapore Dollar [9] =&gt; 10. Taka Per 100 )
  </code></pre>