title: Group PHP results on first letter of name
body: <p>I have a query which gets all records ordered by last_name. Now I would like to create a loop that groups these results by the first letter of the last name and display the letter above the group i.e.</p>
  
  <pre><code>A
  -----------
  Albert
  Alfred
  
  C
  -----------
  Charles
  
  D
  -----------
  Delta etc...
  </code></pre>
  
  <p>Thanks!</p>