title: Another command to replace exit in php?
body: <p>is there any any other command we can use as an alternative to exit(); in php.</p>
  
  <p>Because it breaks my html code at the end of the page if the condition is not met and when script has to exit.</p>
  
  <p>Or if anyone has any other idea to resolve this issue???</p>
  
  <p>Thanks</p>
  
  <p>Update:</p>
  
  <pre><code>html code...
  
  &lt;?php
  if username is not in correct format
  echo "Please check your username";
  exit();
  
  if Username and Password didn't match
  echo "Wrong Username or Password.";
  exit();
  
  if some other condition not met
  echo "Condition not met";
  exit();
  ?&gt;
  
  html code continues...
  </code></pre>
  
  <p>Now the problem is if any of the condition is not met and the script has to exit, the html code below it, which is a whole webpage, does not display...</p>
  
  <p>And please...I am not a computer geek, had a problem so asked it, but why people vote down the question??? don't understand....</p>