Login   Register  
PHP Classes
elePHPant
Icontem

File: emoticonTest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rafael Pinto  >  Emoticon  >  emoticonTest.php  >  Download  
File: emoticonTest.php
Role: Example script
Content type: text/plain
Description: Emoticon Example
Class: Emoticon
Replace emoticon text characters HTML image tags
Author: By
Last change:
Date: 9 years ago
Size: 371 bytes
 

Contents

Class file image Download
<?
include('emoticon.php');
$em = new Emoticon();
$em->add(':)','http://emoticons.kboing.com.br/emoticons_img/1859.gif');
$em->add(':P','http://emoticons.kboing.com.br/emoticons_img/1858.gif');
$em->add('<:)','http://emoticons.kboing.com.br/emoticons_img/2235.gif');
$text 'Hi, people! :) Im not <:), Im a PHP emoticon class! :P';
echo 
$em->apply($text);
?>