hi there i have this code
$strMsg = 'test hehehe :) what the heck :( hehe :)) wahhh :((';
$patterns = array("/:\)/si", "/:\)\)/si", "/:\(/si", "/:\(\(/si" );
$replaces = array(
"<img src='images/smiles/icon_smile.gif'>",
"<img src='images/smiles/icon_lol.gif'>",
"<img src='images/smiles/icon_frown.gif'>",
"<img src='images/smiles/icon_cry.gif'>"
);
$outputMsg = preg_replace($patterns, $replaces, $strMsg);
echo $outputMsg;
the 2 are working but i dont know why the other 2 is not working
i tried to make a message with 🙁( 🙂) but this dont work is there any idea why id dont display the correct value of image?