RE: [PHP] strings and \n
| From: | Greg Sidelinger | Date: | Fri, 25 Jan 2002 21:31:39 +0000 |
| Subject: | RE: [PHP] strings and \n | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82173@lists.php.net to get a copy of this message | ||
\r\n or \n\r is not helping. The thing that confuses me is that some of
the \n lines work just fine while others do not. So if anyone give give
me a hint y it is not working all the time please send me email.
Greg
-----Original Message-----
From: Nick Wilson [mailto:nick@explodingnet.com]
Sent: Friday, January 25, 2002 3:56 PM
To: php-general@lists.php.net
Subject: Re: [PHP] strings and \n
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* and then Greg Sidelinger blurted....
> Ok I'm having a problem with the new line char \n in strings. I'm
> trying to contrast an email that gets sent with the mail() function.
> Here is what I'm doing.
>
> $message = "line1\n";
> $message .= "line2\n\n";
> $message .= "line3\n";
>
> but when the email is received not all the new lines r taken. Can
anyone
> help me. Also where can I get a list of all the special chars like \n
> and what they meain.
I think you need to try \r\n (poss. other way round)
That should do it.
- --
Nick Wilson
Tel: +45 3325 0688
Fax: +45 3325 0677
Web: www.explodingnet.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iD8DBQE8UcZYHpvrrTa6L5oRAuliAJ4vouXleTkRY6IvSva2xS6BBnJHMgCeKHJW
n3BzuUtk5LYJ3gra3SqxnXs=
=fgqQ
-----END PGP SIGNATURE-----
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net