Re: strings and \n
| From: | Jason Wong | Date: | Sat, 26 Jan 2002 04:17:10 +0000 |
| Subject: | Re: strings and \n | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82197@lists.php.net to get a copy of this message | ||
On Saturday 26 January 2002 04:48, Greg Sidelinger wrote:
> 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";
> ...
> $message = "lne99";
Is this a typo in your message or in your code? Shouldn't it be:
$message .= "lne99";
>
> mail ("email", "subject", $message);
>
>
> 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.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Biggest security gap -- an open mouth.
*/