note 31913 added to function.preg-replace

From: Date: Thu, 08 May 2003 17:31:31 +0000
Subject: note 31913 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-47707@lists.php.net to get a copy of this message
Note that escape sequences (including newline) are _not_ expanded inside of single quotes (ref: http://www.php.net/manual/en/language.types.string.php ) _don't_ use: $msgText = ereg_replace('\r\n', '', $this->info['message']); use this: $msgText = ereg_replace("\r\n", "", $this->info['message']); -- http://www.php.net/manual/en/function.preg-replace.php http://master.php.net/manage/user-notes.php?action=edit+31913 http://master.php.net/manage/user-notes.php?action=delete+31913 http://master.php.net/manage/user-notes.php?action=reject+31913

« previous php.notes (#47707) next »