note 33465 rejected from function.print by betz
| From: | betz@php.net | Date: | Thu, 26 Jun 2003 19:54:55 +0000 |
| Subject: | note 33465 rejected from function.print by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51061@lists.php.net to get a copy of this message | ||
Note Submitter: dgoodman_ROCK@mail.utexas.NOSTONES.edu
----
When using the print function, escape characters will only work when using double quotes, not single
quotes.
i.e.
print("Newline after this\nMore text here");
will produce:
Newline after this
More text here.
If you use single quotes
print('Newline after this\nMore text here');
you'll get:
Newline after this\nMore text here