Re: eregi_replace()
| From: | Matt M. | Date: | Fri, 09 Jul 2004 20:02:39 +0000 |
| Subject: | Re: eregi_replace() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190098@lists.php.net to get a copy of this message | ||
> $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
if you want to compare the 2 strings why not do something like this:
if (strtoupper($searchenquiry) == strtoupper($mydata->JR) )