Jump to content

Smilies & preg_replace


Guernica

Recommended Posts

On the page that displays the description of a download, I have this:

 

include('./include/smilies.php');
$str = preg_replace($smileysearch, $smileyreplace, $str);

 

smilies.php just has the two arrays. They are like this:

 

	$smileysearch = array(
	"",
	);

$smileyreplace = array(
	"<img src='images/smilies/1.gif' border='0' />",
	);

 

This displays an error of "No ending delimiter" I believe. What does this mean? I assume it has to do with the ":)" I have but I don't understand what's wrong with that. Please help! TY!

Link to comment
https://forums.phpfreaks.com/topic/106817-smilies-preg_replace/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.