title: How to extract only Hour data from PHP Time string?
body: <p>I have a collection of time records in a database in the format '09:51:06' (hour, minute, second).</p>
  
  <p>I have a query which retrieves a bunch of these times from the database, but I only care for the Hour reference.</p>
  
  <p>How can I get rid of the rest of the string and ad just the hour into an array? So in the example above, I just want to keep '09'.</p>
  
  <p>I've looked into exploding and substrings, but can't seem to figure it out.</p>
  
  <p>Thanks.</p>