how access to the a object mail?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
navid
Forum Commoner
Posts: 68
Joined: Tue Sep 24, 2002 3:14 am
Location: iran

how access to the a object mail?

Post 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>";
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

seems like you already know how to access arrays :D
only echo $struct_msg->parts; is quite useless
Post Reply