Re: Fw: [PHP] FORUM CODE

2002-09-04 Thread joshua
Kevin Stone wrote: > $myformtxt = '[i]Hello[/i] [B]world[/B]'; // pretend this came from a form. 1. I understand what you're doing, and how. But what I don't understand is why? If a user is going to have to type [B]bold[/B], why not just get them to type bold. [bold] and [italic] maybe? 2, I

Fw: [PHP] FORUM CODE

2002-09-03 Thread Kevin Stone
str_replace(); http://www.php.net/manual/en/function.str-replace.php Here's an example how you might use str_replace() to create your own scripting syntax.. --- $myformtxt = '[i]Hello[/i] [B]world[/B]'; // pretend this came from a form. function parse_script($str) { // The array could be stor