title: Convert days and years to day month and year format in php
body: <p>So I have the number of days and the year in the following format:</p>
  
  <pre><code>322 days
  2009 year
  </code></pre>
  
  <p>I need to convert this to <code>2009-11-18</code></p>
  
  <p>Is there a function in php to achieve this?</p>