note 17021 added to function.imap-headers

From: Date: Thu, 22 Nov 2001 11:50:36 +0000
Subject: note 17021 added to function.imap-headers
Groups: php.notes 
Request: Send a blank email to php-notes+get-21157@lists.php.net to get a copy of this message
I hold with the first note: This function is next to useless. It seems that both the examples above are attempting to use it in a context that you would count the number of headers it returns. Simply use imap_num_msg for this... it returns the number of messages. You may argue that the string formatted data returned could be used for display purposes, but the much more detailed data you can get from imap_headerinfo is much more useful, and can be formatted to display more detailed information, or more 'friendly' info on screen. -- http://www.php.net/manual/en/function.imap-headers.php http://master.php.net/manage/user-notes.php?action=edit+17021 http://master.php.net/manage/user-notes.php?action=delete+17021 http://master.php.net/manage/user-notes.php?action=reject+17021

« previous php.notes (#21157) next »