4 <?php if (!extension_loaded("bbcode")) print "skip"; ?>
10 'type' => BBCODE::TYPE_ROOT,
11 'childs' => ['ul','url','img','b','i']
14 'type' => BBCODE::TYPE_NOARG
15 //TODO: by default open tag = <KEY> and close tag = </KEY>
18 'type' => BBCODE::TYPE_NOARG
21 'type' => BBCODE::TYPE_NOARG,
25 'type' => BBCODE::TYPE_NOARG,
27 'childs' => ['url','img','b','i']
30 'type' => BBCODE::TYPE_OPTARG,
31 'open_tag' => '<a href="{PARAM}">',
32 'close_tag' => '</a>',
33 'default_arg' => '{CONTENT}',
34 'parent' => [ '', 'li', 'b', 'i' ]
38 ':)' => '<img src="smiley.gif" alt=":)" />',
39 ':(' => '<img src="sad.gif" alt=":(" />',
40 ':D' => '<img src="happy.gif" alt=":D" />',
41 ':p' => '<img src="tong.gif" alt=":p" />',
42 ':|' => '<img src="special.gif" alt=":|" />',
43 ':6:' => '<img src="six.gif" alt=":6:" />'
48 echo $cln->parse('[ul][li][url=https://rapsys.eu]Rapsys[/url][/li][li][url=https://google.fr]Google[/url][/li][/ul]');
51 [ul][li][url=https://rapsys.eu]Rapsys[/url][/li][li][url=https://google.fr]Google[/url][/li][/ul]