|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-30 15:07 UTC] eschmid at cvs dot php dot net
[2004-09-28 21:54 UTC] lmohr at eatoncounty dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Apr 07 17:00:01 2026 UTC |
Here is an example: <?php for ($i = 4; $i < 8; $i++) { print "I have eaten $i bagels today.\n";} ?> Even with the newline character there, no new line is generated in the output. As you can see, this happens with print, but it also happens with printf and echo. The only thing it does is add a single space where it should have been a new-line.