Date: 12/11/07 (PHP Community) Keywords: no keywords $x = " I?m having fun! "; echo $x = "I'm having fun!"; $x = " I?m having fun! "; $x = ereg_replace('[\?m]', '\'', $x); echo $x = "I'' having fun!"; I need to replace the question mark followed by a single alpha character. I don't understand how to match a ? followed by a character, as a group.
|