Re: <b>

From: Date: Mon, 05 Nov 2001 08:07:10 +0000
Subject: Re: <b>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73557@lists.php.net to get a copy of this message
MAN ereg_replace !!!! $MyString=ereg_replace("/john/","<b>john</b>", $MyString); // something like that . ----- Original Message ----- From: jtjohnston <jtjohnston@courrier.usherb.ca> To: <php-general@lists.php.net> Sent: Tuesday, November 06, 2001 8:32 AM Subject: [PHP] <b> > Hi, > > $MyString = "aaaaaaaaJohnaaaaaaaaaa"; > $CaseSensitive = 0; > > if($CaseSensitive == 0) > { > I want to search for "john" in $MyString and output: > "aaaaaaaa<b>John</b>aaaaaaaaaa". > }else{ > I want to search for "John" in $MyString and output: > "aaaaaaaa<b>John</b>aaaaaaaaaa". > } > > How to do these two things? > > :0( > > John > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#73557) next »