note 47633 added to function.ereg-replace
| From: | users at examples dot com | Date: | Tue, 23 Nov 2004 14:37:51 +0000 |
| Subject: | note 47633 added to function.ereg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80922@lists.php.net to get a copy of this message | ||
Just a simple reminder that ereg_replace and preg_replace and str_replace when replacing newlines
from particular inputs can have various differences depending if it is a windows or a linux newline.
MY suggestion is to take into account both newlines which are ASCII 10 and 13 or chr(10) and
chr(13).
----
Manual Page -- http://www.php.net/manual/en/function.ereg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47633
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47633&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47633&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47633&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47633&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47633&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47633&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47633&report=yes
Search -- http://master.php.net/manage/user-notes.php