Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Robert P  >  Light BBCode  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: The example
Class: Light BBCode
Replace text with BBCode by HTML tags
Author: By
Last change:
Date: 3 years ago
Size: 360 bytes
 

Contents

Class file image Download
<?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);


?>