All pastes #392677 Raw Edit

Tha-Doctor

public php v1 · immutable
·published 2007-03-13 00:26 UTC
rendered paste body
<?phpfunction StringEmotz($string) {  if (ereg(chr(58).")",$string)){ $string = str_replace(chr(58).")","<img src=\"./img/emots/smile1.gif\" alt=\"\" width=\"16\" height=\"16\">", $string); }  if (ereg(chr(58)."D",$string)){ $string = str_replace(chr(58)."D","<img src=\"./img/emots/smile2.gif\" alt=\"\" width=\"16\" height=\"16\">", $string); }  if (ereg(chr(58)."O",$string)){ $string = str_replace(chr(58)."O","<img src=\"./img/emots/smile3.gif\" alt=\"\" width=\"16\" height=\"16\">", $string); }  if (ereg(chr(58)."|",$string)){ $string = str_replace(chr(58)."O","<img src=\"./img/emots/smile4.gif\" alt=\"\" width=\"16\" height=\"16\">", $string); }  if (ereg(chr(58)."(",$string)){ $string = str_replace(chr(58)."O","<img src=\"./img/emots/smile5.gif\" alt=\"\" width=\"16\" height=\"16\">", $string); }  if (ereg(chr(58)."@",$string)){ $string = str_replace(chr(58)."O","<img src=\"./img/emots/smile6.gif\" alt=\"\" width=\"16\" height=\"16\">", $string); }  $strret = $string;  return StringSpace($strret);}function StringSpace($string) {  $string = str_replace(chr(32),chr(160),$string);  return $string;}$shoutboxmsg = "hello this is my shout :)";echo StringEmotz($shoutboxmsg);?>