eregi_replace()
| From: | John Taylor-Johnston | Date: | Fri, 09 Jul 2004 18:09:53 +0000 |
| Subject: | eregi_replace() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190094@lists.php.net to get a copy of this message | ||
I'm using this, but it is wrong.
$mydata->JR = eregi_replace($searchenquiry,
"<b>".$searchenquiry."</b>", $mydata->JR);
echo $searchenquiry;
What I should display is if $searchenquiry = $mydata->JR in a case insensitive way then
echo "<b>".$searchenquiry."</b>";
Do I use if (x =~ b) {} or some sort of string compare or ... ?
John