$string = '[b]Test[/b]';
$bbcode_string = str_replace("<", "[", str_replace(">", "]", $string));

or look into regular expressions...

> -----Original Message-----
> From: Erick Lee [mailto:[EMAIL PROTECTED]]
> Sent: 13 June 2002 3:25 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PCRE Problem
> 
> 
> 
> I want to change it to 
> $string = <b>Test</b>
> How?
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to