Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>That's normal behavior, and cannot be changed : the newline after a closing <code>?&gt;</code> is always ignored.</p> <p><br> Here's the reference, in the FAQ of the PHP manual : <a href="http://fr.php.net/manual/en/faq.using.php#faq.using.newlines" rel="nofollow noreferrer">Hey, what happened to my newlines?</a> <br><em>(quoting, emphasis mine)</em></p> <pre><code>&lt;pre&gt; &lt;?php echo "This should be the first line."; ?&gt; &lt;?php echo "This should show up after the new line above."; ?&gt; &lt;/pre&gt; </code></pre> <blockquote> <p>In PHP, the ending for a block of code is either "<code>?&gt;</code>" or "<code>?&gt;\n</code>" (where <code>\n</code> means a newline). <br>So in the example above, the echoed sentences will be on one line, <strong>because PHP omits the newlines after the block ending</strong>. <br>This means that you need to insert an extra newline after each block of PHP code to make it print out one newline. <br><br>Why does PHP do this? <br>Because when formatting normal HTML, this usually makes your life easier because you don't want that newline, but you'd have to create extremely long lines or otherwise make the raw page source unreadable to achieve that effect.</p> </blockquote> <p><br> And here are a couple of interesting reads about this :</p> <ul> <li><a href="http://en.wikibooks.org/wiki/Complete_PHP_Programming/Escaping_from_HTML#Rules_pertaining_to_HTML_or_whitespace_preceding_or_following_PHP_tags" rel="nofollow noreferrer">Rules pertaining to HTML or whitespace preceding or following PHP tags</a></li> <li><a href="http://shiflett.org/blog/2005/oct/php-stripping-newlines" rel="nofollow noreferrer">PHP Stripping Newlines</a></li> <li><a href="http://brian.moonspot.net/php-history-newline-closing-tag" rel="nofollow noreferrer">The history of PHP eating newlines after the closing tag</a> <em>-- goes back to PHP 3 ^^</em></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload