title: PHP What the meaning or use of echo << JS "some javascript code " JS;?
body: <p>I need to know what is the actual use or the need to write a echo like below,</p>
  
  <pre><code>echo &lt;&lt;&lt; JS
  
                  &lt;script type="text/javascript" language="javascript"&gt;      
                          function writeThisStatus (obj,id) {
                                writeStatus(obj,id,'OPTUS_COMP');
                                setBackground('row_'+id,(obj.checked ? 1 : 0));
                          }
                  &lt;/script&gt;
  
  JS; 
  </code></pre>
  
  <p>is this just equal to the normal echo " string "; or does something else ?</p>