One more question on this topic -
PHP Code:
$shortcut[0] = ":)";
$shortcut[1] = ":(";
$shortcut[2] = ":D";
$shortcut[3] = ":P";
$shortcut[4] = ":o";
$shortcut[5] = "o..o";
$emoticion[0] = "Images/smile.png";
$emoticion[1] = "Images/sad.png";
$emoticion[2] = "Images/grin.png";
$emoticion[3] = "Images/tongue.png";
$emoticion[4] = "Images/gasp.png";
$emoticion[5] = "Images/embarrassed.png";
$text = str_replace("$emoticion", "$shortcut", "$text");
But
PHP Code:
$text = str_replace(":D", "Images/grin.png", "$text");
Does? Any help?
Bookmarks