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
/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
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 =
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
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
5 matches
Mail list logo