note 39243 added to function.ereg-replace
| From: | DeekStarr at rn2 dot php dot net | Date: | Wed, 21 Jan 2004 20:35:30 +0000 |
| Subject: | note 39243 added to function.ereg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63976@lists.php.net to get a copy of this message | ||
Here's a little trick that should be obvious as it can be used everywhere, Takes "ABC
\n\r CBA" and makes it "ABC CBA" as in the case when your working with long
strings in text applications that auto wrap the text.
$STRING = ereg_replace(" [\n\r ]* "," ",$STRING);
Hope it helps!
----
Manual Page -- http://www.php.net/manual/en/function.ereg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39243
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39243&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39243&report=yes
Search -- http://master.php.net/manage/user-notes.php