Hello guys,
I need an idea about how to convert codes like:
Of course, I can get one symbol from string and check if it's ":" or ";" or "[" and then convert them to some HTML. Or I can get all codes to an array and replace all know codes to HTML, but then I will not be able to convert codes like:Code:;) :smile2: :lol: :) [b] [/img] [url = http://www.site.com/file.html] [i] [quote] etc
I wonder, is there any "smart" way to do it? Also, maybe there is some built-in PHP function or some PECL/PHP classes?Code:[url = http://www.site.com/file.html]Link title[/url] or [img]282[/img]







Bookmarks