title: php - try, catch, and retry
body: <p>Sometimes my code breaks and it is out of my control </p>
  
  <p>How would I do the following?</p>
  
  <pre><code>try {
  //do my stuff
  }
  catch {
  //sleep and try again
  }
  </code></pre>
  
  <p>The code isn't that much, so it's all one function, so I didn't want to make and call another function if I didn't have to</p>