note 33465 added to function.print
| From: | dgoodman_ROCK at mail dot utexas dot NOSTONES dot edu | Date: | Thu, 26 Jun 2003 19:50:38 +0000 |
| Subject: | note 33465 added to function.print | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51060@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.print.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33465
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33465&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33465&report=yes