note 103316 added to function.imap-fetch-overview

From: Date: Thu, 07 Apr 2011 00:31:59 +0000
Subject: note 103316 added to function.imap-fetch-overview
Groups: php.notes 
Request: Send a blank email to php-notes+get-178579@lists.php.net to get a copy of this message
Hopefully someone will find this a jumpstarter for a sortable, paginated list: <? public function listMessages($nStart=0, $nCnt=10) { if (!$this->loaded) { return NULL; } if (($nStart+$nCnt) > $this->getNum()) { $nCnt = $this->getNum()-$nStart; } $aMsgs = imap_fetch_overview($this->rCon, ($nStart+1).':'.($nStart+$nCnt)); $aRet = array(); if ($aMsgs) { foreach ($aMsgs as $msg) { $aRet[$msg->udate] = $msg; } } krsort($aRet); var_dump($aRet); } ?> ---- Server IP: 208.69.120.55 Probable Submitter: 134.29.239.140 ---- Manual Page -- http://www.php.net/manual/en/function.imap-fetch-overview.php Edit -- https://master.php.net/note/edit/103316 Del: integrated -- https://master.php.net/note/delete/103316/integrated Del: useless -- https://master.php.net/note/delete/103316/useless Del: bad code -- https://master.php.net/note/delete/103316/bad+code Del: spam -- https://master.php.net/note/delete/103316/spam Del: non-english -- https://master.php.net/note/delete/103316/non-english Del: in docs -- https://master.php.net/note/delete/103316/in+docs Del: other reasons-- https://master.php.net/note/delete/103316 Reject -- https://master.php.net/note/reject/103316 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178579) next »