preg_match() or stripos()?
<p>For doing insensitive case search in strings which function is faster preg_match() or stripos()?</p>

<pre><code>&lt;?php 

$string = "This is test string";    
$result = preg_match('/test/i', $string);

OR

$result = stripos($string, 'test') !== false;  
?&gt;
</code></pre>
