Witajcie,
Mam problem a raczej nie wiem jak posortować maile po dacie aby najnowsze byly na samej górze
oto moj kod:
  1. $mail = new Zend_Mail_Storage_Imap(array('host'     => 'xxxx',
  2.                                         'user'     => 'xxxxx',
  3.                                         'password' => 'xxxx'));
  4.  
  5. <?php foreach($this->mails as $message):?>
  6. <?php echo $message->subject ?>
  7. <?php echo $message->from ?>
  8. <?php echo  substr($message->date, 0, -6) ?>
  9.  
  10. <?php endif;?>