title: Stop a php function
body: <p>I have this code that simply validates a date, but ends the script if a error occurs (<code>exit ()</code>).</p>
  
  <p>Now i want to put this same code in a single function that returns <code>false</code> on error.</p>
  
  <p>I dont want to use "if/else". I want to return <code>false</code> on error and stop execution of the others things.</p>
  
  <p>Is that possible?</p>