PHP Classes

File: example.php

Recommend this page to a friend!
  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: 13 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);


?>