title: PHP: is it possible to end a script like exit() but from inside a php class/object
body: <p>Is it possible to do this?</p>
  
  <pre><code>$objetc -&gt; runAndFinish();
  
  echo "this should not be echoed";
  </code></pre>
  
  <p>instead of this?</p>
  
  <pre><code>$objetc -&gt; runAndFinish();
  
  exit();
  
  echo "this should not be echoed";
  </code></pre>
  
  <p>So runAndFinish(); method would somehow end the script processing.
  Is it possible?</p>