Errors concerning depreciated eregi
<p>This is the error i am receiving </p>

<pre><code>Deprecated: Function eregi() is deprecated in /home/socia125/public_html/profile.php on                  
line231
</code></pre>

<p>This is my code</p>

<pre><code>// Loop through the array of user agents and matching operating systems
   foreach($OSList as $CurrOS=&gt;$Match) {
    // Find a match
    if (eregi($Match, $agent)) {
            break;
</code></pre>

<p>any help is appreciated</p>
