If you just want to do a simple string search is there any difference between using "strstr" or "ereg"? Are there performance issues?
<?
$name = 'William Jefferson Clinton';
if (strstr ($name,'Jeff')) {echo 'found it';}
or
if (ereg ('Jeff',$name)) {echo 'found it';}
?>