hi,
Dann müsste dies doch so richtig sein oder?
function replaceSmilies ($text) {
return preg_replace ("/:)/", '<img src="images/smilies/smile.gif">', $text);
Nein - weil dein regulärer Ausdruck nicht korrekt ist.
Jedoch bekomme ich eine Fehlermeldung:
Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 1 in
Was heisst denn parentheses auf Deutsch?
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }