after connect to pop3 account using imap-open .. How can I know the name of files that attached with current message (email) ?

I try this code but it does not work ..

$Structure = imap_fetchstructure($mbox,$x);
Echo $Structure->parts[1]->disposition;