Page 1 of 1

how access to the a object mail?

Posted: Thu Nov 14, 2002 2:23 am
by navid
hi all
i not know use of Object.
i not know structure a object.
how i access to the value of Object?

in following script $struct_msg is structure a message(email).
the $struct_msg->parts get me a array of objects.

i not know way for access to value of object

$struct_msg = @imap_fetchstructure($mbox, $mail);
echo $struct_msg->parts;
for ($i=0;$i<count($struct_msg->parts);$i++)
echo $struct_msg->parts[$i]."<br>";

Posted: Thu Nov 14, 2002 4:17 am
by volka
seems like you already know how to access arrays :D
only echo $struct_msg->parts; is quite useless