note 25001 added to function.str-replace
| From: | php-general at lists dot php dot net | Date: | Sat, 07 Sep 2002 14:54:44 +0000 |
| Subject: | note 25001 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36297@lists.php.net to get a copy of this message | ||
how do I setup a smiley code system?
I want :-) to translate into HTMLcode for an image - how do I do that? I've tried this:
$smiley = str_replace(":)", "<img src=\"URL.gif\">", $smiley);
But it's not working !
--
http://www.php.net/manual/en/function.str-replace.php
http://master.php.net/manage/user-notes.php?action=edit+25001
http://master.php.net/manage/user-notes.php?action=delete+25001
http://master.php.net/manage/user-notes.php?action=reject+25001