note 85181 deleted from language.basic-syntax.instruction-separation by googleguy
| From: | googleguy@php.net | Date: | Wed, 01 Jan 2014 04:01:09 +0000 |
| Subject: | note 85181 deleted from language.basic-syntax.instruction-separation by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-198063@lists.php.net to get a copy of this message | ||
Note Submitter: Darabos, Edvrd Konrd
----
One newline character (or sequence) is dropped out by the parser after "?>", so you can
add the beloved "final newline" to your file after "?>"
Example for plain text outputs:
<? foreach($array as $elem){ ?>
Value: <?=$elem?>
<? } ?>
(You have to add an extra enter after <?=$elem?> if you want to see a newline in the output.