View file smile.php

File size: 306B
<?php
function smile($text)
{
$a=':)';
$b=':(';
$c=';)';
$sa='<img src="smiles/good.gif" alt=":)">';
$sb='<img src="smiles/bad.gif" alt=":(">';
$sc='<img src="smiles/blink.gif" alt=";)">';
$text=str_replace($a,$sa,$text);
$text=str_replace($b,$sb,$text);
$text=str_replace($c,$sc,$text);
return $text;
}
?>