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: 2005-05-03 14:28
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! :) I´m not <:), I´m a PHP emoticon class! :P';
echo 
$em->apply($text);
?>