note 42652 deleted from ref.mail by nlopess
| From: | nlopess@php.net | Date: | Tue, 25 May 2004 14:45:12 +0000 |
| Subject: | note 42652 deleted from ref.mail by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70060@lists.php.net to get a copy of this message | ||
Note Submitter: cperrywebrat@yahoo.com
----
I was not able to print a newline using the \n feature. To workaround this, I used the ASCII dec
code. For example:
This is the message in the body of an email sent from a web page:
$message=('From: '.$yourName.chr(10).'Email: '.$yourEmail.chr(10));
The message displayed might be:
From: Sam Spade
Email: sam@spade.com
The ASCII dec code chr(10) prints the newline character.