title: Converting an array of floating point numbers into an array of timestamps in PHP
body: <p>I'm an absolute PHP newbie, however I do understand some basic JS and Ruby. </p>
  
  <p>I've got an array like the below. </p>
  
  <pre><code>[7, 13.5, 15, 16.5, 24]
  </code></pre>
  
  <p>Each element is a number between 0 to 24 and it signifies a time instance in the day. 7 signifies 07:00:00, 13.5 signifies 13:30:00, etc.</p>
  
  <p>I'm looking help converting the above array into the below array &amp; changing 24 into 23:59:59. </p>
  
  <pre><code>[07:00:00, 13:30:00, 15:00:00, 16:30:00, 23:59:59]
  </code></pre>
  
  <p>the items in the original array will <strong>always</strong> be either a whole number or have a 5 after the decimal.</p>
  
  <p>Thanks</p>