Hey all. Im trying to reduce some lines of code that has muliple lines
of str_replace. I figure lets try using arrays but its not working.
E.g. I have about 15-20 lines like this.
$message = str_replace(":D", "<IMG
SRC=\"images/forum/icons/icon_biggrin.gif\">", $message);
Im trying
$path = "images/forum/icons/";
$one = array(":D",":)");
$two = array("$path"."icon_biggrin.gif", "$path"."icon_smile.gif");
message = str_replace($one, $two, $message);
do you see anything wrong....
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]