Login   Register  
PHP Classes

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: 6 years ago
Size: 489 bytes


Class file image Download

//include class 
include 'Ocolorizer.php';

$s    =    new colorize;

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

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

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

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