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 Abdulrahman Muhammad  >  Ocolorize  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: Ocolorize
Format text with tags as colored HTML or BBCode
Author: By
Last change:
Date: 7 years ago
Size: 489 bytes
 

Contents

Class file image Download
<?php

   
//include class
   
include 'Ocolorizer.php';


   
$s = new colorize;

   
//colorize word ..
   
print $s->mk('welocme to <b>moffed.com</b>',1);
    print
'<br/>';

   
   
//colorize word .. bbcodes
   
print $s->mk('welocme to [b]moffed.com[/b]',1,1);
    print
'<br/>';

   
   
//colorize letters ..
   
print $s->mk('welocme to <b>moffed.com</b>',0);
    print
'<br/>';

   
   
//colorize letters .. .. bbcodes
   
print $s->mk('welocme to [b]moffed.com[/b]',0,1);
    print
'<br/>';

   

?>