note 25171 added to function.imap-headerinfo

From: Date: Thu, 12 Sep 2002 22:39:55 +0000
Subject: note 25171 added to function.imap-headerinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-36608@lists.php.net to get a copy of this message
This is probably trivial to most people, but it wasn't obvious to me. When you call something like $header->from it returns an array of objects, but the array only contains one element. To call one of the from objects in the array, I used: $personal = $header->from[0]->personal; to get the 'personal' name. Hope this helps. -- http://www.php.net/manual/en/function.imap-headerinfo.php http://master.php.net/manage/user-notes.php?action=edit+25171 http://master.php.net/manage/user-notes.php?action=delete+25171 http://master.php.net/manage/user-notes.php?action=reject+25171

« previous php.notes (#36608) next »