title: Sorting PHP Array by ISO Date
body: <p>I am trying to sort an array in PHP by date and time which is in ISO 8601 format. I am still trying to grasp PHP and have tried many of the solutions on stack overflow and I am just not able to nail down the right function. Hopefully this is an easy answer and it will be helpful to others.</p>
  
  <p>FYI, this array was generated by the Citrix API for GoToMeeting. I would like to sort the array based on startTime in the soonest time first in the list.</p>
  
  <p>Here is what the array looks like using var_export with two results presented:</p>
  
  <pre><code>array (
   0 =&gt; stdClass::__set_state(
    array(
     'createTime' =&gt; '2012-07-03T19:36:58.+0000',
     'status' =&gt; 'INACTIVE',
     'subject' =&gt; 'Client 1',
     'startTime' =&gt; '2012-07-10T14:00:00.+0000',
     'conferenceCallInfo' =&gt; 'United States: xxxxx Access Code: xxxxx',
     'passwordRequired' =&gt; 'false',
     'meetingType' =&gt; 'Scheduled',
     'maxParticipants' =&gt; 26,
     'endTime' =&gt; '2012-07-10T15:00:00.+0000',
     'uniqueMeetingId' =&gt; 12345678,
     'meetingid' =&gt; 123456789,
    )
   ),
   1 =&gt; stdClass::__set_state(
    array(
     'createTime' =&gt; '2012-07-02T21:57:48.+0000',
     'status' =&gt; 'INACTIVE',
     'subject' =&gt; 'Client 2',
     'startTime' =&gt; '2012-07-06T19:00:00.+0000',
     'conferenceCallInfo' =&gt; 'United States: xxxxx Access Code: xxxxx',
     'passwordRequired' =&gt; 'false',
     'meetingType' =&gt; 'Scheduled',
     'maxParticipants' =&gt; 26,
     'endTime' =&gt; '2012-07-06T20:00:00.+0000',
     'uniqueMeetingId' =&gt; 12345678,
     'meetingid' =&gt; 123456789,
    )
   ),
  )
  </code></pre>
  
  <p>My goal is to then output the array into html div's using a foreach loop, this code is complete and works well but my sort is off :-)</p>
  
  <p>Thank you in advance for any help! </p>
  
  <p>Steve</p>