title: determine if all values in array are equal
body: <p>I have the following values in a single field from a mysql db</p>
  
  <pre><code>$rec1="4/1 @ 4p, 4/7 @ 4p, 4/8 @ 4p, 4/14 @ 4p, 4/15 @ 4p, 4/22 @ 4p, 4/28 @ 4p ";
  $rec2="4/1 @ 4p, 4/7 @ 7p, 4/8 @ 4p, 4/14 @ 4p, 4/15 @ 4p, 4/22 @ 4p, 4/28 @ 4p ";
  </code></pre>
  
  <p>I need to determine whether all of the time values are the same and if so return just the single time value, otherwise return the entire string. 
  In two records above I would want returned value to be -
  <code>$rec1=4p</code> (all the times were equal, don't care about the dates)
  <code>$rec2= unchanged</code> from original <code>$rec2</code> above since at least one of the time values is different.</p>