pouncer Posted November 30, 2006 Share Posted November 30, 2006 function EmotReplace(text) { text.repace("/:)/, '<img src="emoticons/smile.gif">')"; }whats wrong with that. if the user types :) : ) i want it to show the smile.gif Link to comment https://forums.phpfreaks.com/topic/28934-replace/ Share on other sites More sharing options...
joshi_v Posted December 1, 2006 Share Posted December 1, 2006 Just check the spelling of replace function! ;) Link to comment https://forums.phpfreaks.com/topic/28934-replace/#findComment-133208 Share on other sites More sharing options...
fenway Posted December 6, 2006 Share Posted December 6, 2006 Also, you need to assign it back... your lvalue is missing. Link to comment https://forums.phpfreaks.com/topic/28934-replace/#findComment-135987 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.