title: How to reload a page in PHP before exit function?
body: <p>I got some code like this and the header is not working</p>
  
  <pre><code>    if ($variable &gt; 0) {
  
     header('Location: mypage.php');
  
     exit;
  }
  </code></pre>
  
  <p>And I need exit function, is this a bad idea?</p>