title: PHP Best way to stop constructor
body: <p>I am dealing with stop the constructor.</p>
  
  <pre><code>public function __construct()
  {
     $q = explode("?",$_SERVER['REQUEST_URI']);
     $this-&gt;page = $q[0];
  
     if (isset($q[1]))
        $this-&gt;querystring = '?'.$q[1];
  
     if ($this-&gt;page=='/login') {include_once($_SERVER['DOCUMENT_ROOT'].'/pages/login.php');
        // I WANT TO EXIT CONSTRUCTOR HERE
  }
  </code></pre>
  
  <p>There are function to stop/exit constructor :</p>
  
  <p><strong>die()</strong> , <strong>exit()</strong>, <strong>break()</strong> and <strong>return false</strong></p>
  
  <p>I am using return false but i am confusing about security. What is the best way to exit constructor ?</p>
  
  <p>Thank you for your time.</p>