title: PHP practical advantages for using echo over print
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7094118/reference-comparing-phps-print-and-echo">Reference: Comparing PHP&#39;s print and echo</a>  </p>
  </blockquote>
  
  
  
  <p>I am wondering about the <em>practical</em> and <em>real</em> advantages and reasons for using <code>echo</code> instead of <code>print</code> to write output to the screen.</p>
  
  <p>In many areas of my code I have this sort of thing:</p>
  
  <pre><code>PRINT("&lt;b&gt;".$course_id."&lt;/b&gt;");
  </code></pre>
  
  <p>I understand that <code>print</code> returns a value whereas <code>echo</code> doesn't, however i'm interested to know if there is any real reason to replace the instances in my code (and there are a few unfortunately) of <code>print</code> with <code>echo</code>?</p>
  
  <p>Is it just bad practice to use <code>print</code> in these sort of scenarios or is there reason and benefit to avoiding it? </p>
  
  <p>I am using PHP 5.3.13.</p>