RE: [PHP] Help in sorting
| From: | John W. Holmes | Date: | Wed, 02 Apr 2003 23:28:07 +0000 |
| Subject: | RE: [PHP] Help in sorting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142043@lists.php.net to get a copy of this message | ||
It looks sorted to me. You get message 12, 23, and then 25. How exactly
do you want it to look?
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -----Original Message-----
> From: Haseeb Iqbal [mailto:webcodder@hotmail.com]
> Sent: Wednesday, April 02, 2003 9:17 PM
> To: PHP General
> Subject: [PHP] Help in sorting
>
> hi,
> i want to sort messages in a sequence
> the sequence is "23,12,25" (these are message nos)
> now when i call like this
>
> $nMsgSeq="23,12,25";
> imap_fetch_overview($pIMAP,$nMsgSeq,0);
> i get an array sorted like
>
> Array
> (
> [0] => stdClass Object
> (
> .... [uid] => 21
> [msgno] => 12
> [recent] => 0
> [flagged] => 0
> [answered] => 0
> [deleted] => 0
> [seen] => 1
> [draft] => 0
> )
>
> [1] => stdClass Object
> (
> [uid] => 34
> [msgno] => 23
> [recent] => 0
> [flagged] => 0
> [answered] => 0
> [deleted] => 1
> [seen] => 1
> [draft] => 0
> )
>
> [2] => stdClass Object
> (
> [uid] => 36
> [msgno] => 25
> [recent] => 0
> [flagged] => 0
> [answered] => 0
> [deleted] => 1
> [seen] => 1
> [draft] => 0
> )
>
> )
>
> i want the array just like the sequence what should i do?
>
> Friendship is always a sweet responsibility, never an opportunity.
> HaSeEb IqBaL.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php