<?php $text = "[b]Bold[/b] [i]Italic[/i] [u]Underline[/u] [s]Strike[/s] [center]Center[/center] [small]Small[/small] [big][/big] [p]Paragraph[/p] [color=red]Color[/color] [size=99]Size[/size] [url=http://www.example.com]Link[/url]"; include 'LightBB.class.php'; $bb = new BBCode(); echo $bb->replace($text); ?>