I have a function which goes through an e-mail message and returns the attachments. The problem is, on certain e-mails, I am getting the error: "Cannot use object of type stdClass as array"
I tried researching this, but no one seems to offer a solution. I am not even really sure as to what the stdClass object is :/
Anyways, this is my code:
Here is a sample of the array:
Array ( [0] => stdClass Object ( [type] => 2 [encoding] => 0 [ifsubtype] => 1 [subtype] => RFC822 [ifdescription] => 0 [ifid] => 0 [lines] => 131611 [bytes] => 10091972 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 0 [parameters] => stdClass Object ( ) ) )
Does anyone know how to go about fixing this? Help would be greatly appreciated
