How do I display only match keyword in array
<p>This is my array output</p>

<pre><code>Array
(
    [0] =&gt; Array
        (
            [tweet_text] =&gt; Fedora 16 "Verne" released! http://t.co/lECbdzE0 #Fedora #Linux
        )

    [1] =&gt; Array
        (
            [tweet_text] =&gt; Ubuntu 11.10 "Oneiric Ocelot" released! #Ubuntu #Linux
        )

)
</code></pre>

<p>Example to find <code>Ubuntu</code> keyword. From the current array how do I filter to show only</p>

<pre><code>Array ( [1] =&gt; Array (
            [tweet_text] =&gt; Ubuntu 11.10 "Oneiric Ocelot" released! #Ubuntu #Linux
        )   
)
</code></pre>

<p>The code</p>

<pre><code>$keywords = array('Ubuntu');

foreach ($keywords as &amp;$keyword) {
    $keyword = preg_quote($keyword);
}

$regex = "/(" . implode('|', $keywords) . ")/";
$check = preg_match($regex, $anArray);

if($check == 1)  {
 // here I want to display only Ubuntu
}
</code></pre>

<p>Let me know</p>
