title: Does return stop the rest of the script in php?
body: <p>In php, is it safe to rely on <code>return</code> to stop the execution of the rest of the script? Or is there a better method than this?</p>
  
  <p><strong>For Example:</strong></p>
  
  <pre><code>$x = 3;
  
  if($x == 3){
      return false;
  }
  
  $a = 2;
  $b = 2;
  
  echo $a + $b;
  
  echo 'You will never see me if x = 3';
  </code></pre>