Jump to content

PHP coding help


myares

Recommended Posts

$a = str_replace('this', '<b>this</b>', $a);

 

http://us.php.net/manual/en/function.str-replace.php  :rtfm:

 

well... i am not only talking about the text "this is a title" i want a code which will put something like (<b>)  before the first word of the text and  (</b>) after the first word of the text.. whatever the text is.

Link to comment
https://forums.phpfreaks.com/topic/194470-php-coding-help/#findComment-1022877
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.