Print This Page

C97net

bbcode ()

Tweet
function bbcode($Text)

Convert any bbcode tags to html tags, eg [b]bold[/b] to <b>bold</b>.

$Text = the bbcode'd string to be converted.

Accepted BB code:

Example 1

<?php
require './includes/user_init.php';

$str = "Hi, [b]there[/b]. This is [i][u]a test[/u][/i].
[list][*]One[/*][*]Two[/*][/list]";
echo bbcode ($str);
?>

Posted On: Aug-25-2010 @ 07:00am
Last Updated: Jan-01-1970 @ 07:00am

There is no comment. Why not be the first?

More Comments/Post Your Own


Powered by qEngine
Generated in 0.013 second | 15 queries