PHP array_search exact match
<p>I have the following array. Note that some times there are more params, sometimes there are less.</p>

<pre><code>array(0 =&gt; 'param1: value1', 
      1 =&gt; 'param2: value2', 
      2 =&gt; 'param5: value5', 
      3 =&gt; 'param7: value7');
</code></pre>

<p>I need to put in variable the values of the params that im interested in, e.g. param1 and param7, so i decided to use array_search and then to value.</p>

<p>E.g.</p>

<pre><code>$value7 = array_search('param7:', $arr1);
$avalue7 = explode(':', $arr1[$value7]);
$value7 = $aValue7[1]
</code></pre>

<p>However it does not work - array_search does not find any matches, most probably because it search for exact match. Any suggestions, or improvements are welcome.</p>
