RE: [PHP] stripping newlines from a string

2003-06-09 Thread Boaz Yahav
09, 2003 7:44 AM To: [EMAIL PROTECTED] Subject: [PHP] stripping newlines from a string Hi all, How would i go about stripping all newlines from a string? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General

Re: [PHP] stripping newlines from a string

2003-06-09 Thread Charles Kline
/str_replace $newstr = str_replace(\n, , $oldstr); - Original Message - From: Charles Kline [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 08, 2003 10:44 PM Subject: [PHP] stripping newlines from a string Hi all, How would i go about stripping all newlines from a string? Thanks

Re: [PHP] stripping newlines from a string

2003-06-09 Thread Lars Torben Wilson
On Sun, 2003-06-08 at 22:44, Charles Kline wrote: Hi all, How would i go about stripping all newlines from a string? Thanks, Charles Something like this: ?php error_reporting(E_ALL); $str = This string has unix\n and Windows\r\n and Mac\r line endings.; $new_str =

Re: [PHP] stripping newlines from a string

2003-06-09 Thread Philip Olson
Subject: [PHP] stripping newlines from a string Hi all, How would i go about stripping all newlines from a string? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List

[PHP] stripping newlines from a string

2003-06-08 Thread Charles Kline
Hi all, How would i go about stripping all newlines from a string? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php