:09
Til: Jens
Cc: [EMAIL PROTECTED]
Emne: Re: [PHP] converting str with \n to one line str??
use nl2br()
http://www.php.net/nl2br
or, alternatively, use a regex to strip out the newlines
hope this helps.
- Original Message -
From: Jens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent
] converting str with \n to one line str??
You could use str_replace().
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 20 Aug 2001 20:15:54 +0200
Jens [EMAIL PROTECTED] wrote:
When I use Javascript with PHP i run into one problem. When I get the
data i
Til: Jens
Cc: [EMAIL PROTECTED]
Emne: Re: [PHP] converting str with \n to one line str??
You could use str_replace().
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 20 Aug 2001 20:15:54 +0200
Jens [EMAIL PROTECTED] wrote:
When I use
-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sendt: 21. august 2001 09:31
Til: Jens Schødt; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Emne: RE: [PHP] converting str with \n to one line str??
just a thought - \r\n?
try stripping out \r's as well. windows does
for the help :-)
jens
-Oprindelig meddelelse-
Fra: David Robley [mailto:[EMAIL PROTECTED]]
Sendt: 21. august 2001 09:43
Til: Jens Schødt
Cc: '[EMAIL PROTECTED]'
Emne: Re: [PHP] converting str with \n to one line str??
On Tue, 21 Aug 2001 16:49, Jens Schodt wrote:
$temp = str_replace(\n
: [EMAIL PROTECTED]
Emne: Re: [PHP] converting str with \n to one line str??
You could use str_replace().
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 20 Aug 2001 20:15:54 +0200
Jens [EMAIL PROTECTED] wrote:
When I use Javascript with PHP i run into one
When I use Javascript with PHP i run into one problem. When I get the data i
need from the database it often has a lot of br and \n (new lines) in it.
The br are no problem when converting a string to a Javascript string, but
the \n are. The string has to be all in one line.
example:
? $temp =
use nl2br()
http://www.php.net/nl2br
or, alternatively, use a regex to strip out the newlines
hope this helps.
- Original Message -
From: Jens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 20, 2001 11:15
Subject: [PHP] converting str with \n to one line str??
When I
You could use str_replace().
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 20 Aug 2001 20:15:54 +0200
Jens [EMAIL PROTECTED] wrote:
When I use Javascript with PHP i run into one problem. When I get the
data i
need from the database it often has
9 matches
Mail list logo