title: How to create a function to get time slots in a day in PHP?
body: <p>I need to get an array of time slots in a day, i.e. 24 hours. Something like: </p>
  
  <pre><code>array ( 
      00:00=&gt;00:00,
      00:05=&gt;00:05,
      00:10=&gt;00:10,
      .................
      21:05=&gt;21:05,
      .....
      23:55=&gt;23:55,
      24:00=&gt;24:00
   )
  </code></pre>
  
  <p>I want to get this as a function return value with 5 minute intervals. Sorry for my bad English.</p>