title: Why the the newline \n doesn't work with printf() in PHP
body: <p>IGNORE THIS QUESTION. ASKED IN ERROR:</p>
  
  <p>What's the difference between the following 2 printf statements:</p>
  
  <pre><code>printf($variable, "\n");
  
  printf("Hello\n");
  </code></pre>
  
  <p>The newline gets ignored in the 1st printf() statement. But it works fine with the 2nd statement.</p>
  
  <p>The only way I can use the new line is by splitting the 1st statement in to 2 separate statements:</p>
  
  <pre><code>printf($variable);
  printf("\n");
  </code></pre>
  
  <p>This sounds like a query from an absolute novice however I feel the newline was supported pretty good in Java but not in PHP.</p>