How to search array item with given string
<p>i have an array:</p>

<pre><code>$mainArr = ["SRI", "AIS", "GOW","SRI#AIS","SRI#GOW", "SRI#GOW#AIS"];

$strArr = ["SRI"];
</code></pre>

<p>i want to search the main Array with the given string Array element so that if the string is matched it should get the corresponding key,value pair.</p>

<p>expected o/p would be:</p>

<pre><code>Array[
    0-&gt;SRI
    3-&gt;SRI#AIS
    4-&gt;SRI#GOW
    5-&gt;SRI#AIS#GOW
]
</code></pre>

<p>Any ideas ?</p>

<p>Thanks,
Srinivas</p>
