title: Can I override the PHP built-in function echo()?
body: <p>I recently looked at my source code and it was a real mess.</p>
  
  <p>my php source:</p>
  
  <pre><code>echo '&lt;h1&gt;Rar&lt;h1&gt;';
  echo '&lt;span&gt;Rar&lt;/span&gt;';
  echo '&lt;p&gt;Rar&lt;/p&gt;';
  </code></pre>
  
  <p>and when I view the browser source for the page rendered:</p>
  
  <pre><code>&lt;h1&gt;Rar&lt;/h1&gt;&lt;span&gt;Rar&lt;/span&gt;&lt;p&gt;Rar&lt;/p&gt;
  </code></pre>
  
  <p>is there a way for me to override echo so that every output would end with a newline, something like</p>
  
  <pre><code>function echo($string)
  {
   echo $string . "\r\n";
  }
  </code></pre>