note 25978 added to function.imap-fetch-overview

From: Date: Mon, 14 Oct 2002 09:34:24 +0000
Subject: note 25978 added to function.imap-fetch-overview
Groups: php.notes 
Request: Send a blank email to php-notes+get-38040@lists.php.net to get a copy of this message
Note that these object-variables only exist when they are actually in the mail. This means that if a mail has no subject, the property $val->subject will not exist. Calling $val->subject will generate an notice: Notice: Undefined property: subject in /home/html/inc/Mbox.php on line xxx Use this to check it: if (array_key_exists( "subject", get_object_vars($val))) $subj=$val->subject; else $subj=""; -- http://www.php.net/manual/en/function.imap-fetch-overview.php http://master.php.net/manage/user-notes.php?action=edit+25978 http://master.php.net/manage/user-notes.php?action=delete+25978 http://master.php.net/manage/user-notes.php?action=reject+25978

« previous php.notes (#38040) next »