note 17840 deleted from function.imap-fetchstructure by jimw
| From: | jimw@php.net | Date: | Wed, 02 Jan 2002 11:34:47 +0000 |
| Subject: | note 17840 deleted from function.imap-fetchstructure by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24220@lists.php.net to get a copy of this message | ||
parameters, parts are objects that have a lot of great information about different parts of the
message. For example if your message is written in both text/plain and text/html formats then parts
will contain 2 objects and most likely will have this hierarchy, i used print_r to read whats inside
the object, print_r function helped quite a bit and i recommend on using it, this is what it printed
when i "print_r ($msg_struct->parts);". A lot of useful info which isnt documented in
this function:
Array ( [0] => stdClass Object ( [encoding] => 4 [ifsubtype] => 1 [subtype] => PLAIN
[ifdescription] => 0 [ifid] => 0 [lines] => 1 [bytes] => 23 [ifdisposition] => 0
[ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object
( [attribute] => CHARSET [value] => iso-8859-1 ) ) ) [1] => stdClass Object ( [encoding]
=> 4 [ifsubtype] => 1 [subtype] => HTML [ifdescription] => 0 [ifid] => 0 [lines]
=> 11 [bytes] => 414 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1
[parameters] => Array ( [0] => stdClass Object ( [attribute] => CHARSET [value] =>
iso-8859-1 ) ) ) )