Error when get value from string text?
<p>I have a from text:</p>

<pre><code>$text = 'abc def abc ghi abc jkl';
$search = 'abc';
$regex = '/'.trim($search).'/ism';
if(preg_match_all($regex, $text, $tmp)) {
   $array_key = $tmp[0];
   foreach($array_key as $ak) {
       echo $ak[1];
   }
}
</code></pre>

<p>When I echo $ak[1] is result is <strong>b</strong>, I want result is <strong>abc</strong>, how to fix it</p>

<p>abc def <strong>abc</strong> ghi abc jkl</p>
