title: Using echo & exit to end a function in php
body: <p>When I post data to a function in php page, it continues to run over all lines.
  I mean while debugging I retrieve my data with <code>echo json_encode(..)</code>
  And continue in next line to debug. So I use <code>exit</code> to stop it. But it means I have to use <code>exit each echo..</code></p>
  
  <pre><code> echo json_encode($resultData);
                  exit; //if I don't use this, interprets goes on
  </code></pre>
  
  <p>In real scenario, I though it will improve performance because I don't need php interpreter check the other lines.. 
  or I have misunderstood completely on this?</p>