BBCODE
PHP Code
+ 0 likes
Please Register to submit score.
| Average Score | 4.0 (of 2 scores) |
| Date Added | Jun 22, 2007 |
| Last Updated | Jun 22, 2007 |
| Tags | bbcode huh nice php |
Introduction
this will result in = poopoo
really simple!
PHP Snippet:
BBCODE
Posted on Jul 7, 2007 4:46 am
Posted on Jul 7, 2007 4:46 am
just a suggestion, but to decrease the size of the script, consider sticking the search and replacements into arrays. also, just using str_replace (or as Hawkee suggested, str_ireplace), means that you aren't actually validating the input, meaning that the user could possibly break up the format of the output page by adding too many closing or opening tags. A preg_replace would be better, that way if there are any mismatches, they aren't replaced at all.



