title: Is it correct to set up a variable inside a php try-catch?
body: <p>I know I can. I know it works. But, is it correct? I'm thinking that is like putting a div inside a span: you can but someone will hunt you, find you and destroy you.</p>
  
  <pre><code>// $value comes from $_POST no validation
  try {
      $value = new DateTime($value);
  } catch(Exception $e) {
      $value = new DateTime();
  }
  </code></pre>