Re: eregi_replace()

From: Date: Fri, 09 Jul 2004 20:15:33 +0000
Subject: Re: eregi_replace()
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-190103@lists.php.net to get a copy of this message
> The problem is $searchenquiry would be contained inside $mydata->JR so I would need to see > if it exists and then put <b>...</b> around it, without changing the original case. what do you have in $searchenquiry? try this echo preg_replace ('/('.$searchenquiry.')/i' , "<b>$1</b>", $mydata->JR);

« previous php.general (#190103) next »