Re: [PHP] objects within arrays

2002-12-24 Thread Beth Gore
This didn't work. Apparently from[] returns an array of objects, however I have no idea how to access the object within the array. print_r gives this: Array ( [0] => stdClass Object ( [personal] => Beth Gore [mailbox] => bethanoia [host] => habitformer.co.uk ) ) I've tried this: echo $header-

Re: [PHP] objects within arrays

2002-12-24 Thread Andrew Brampton
Big guess but I think maybe: $header[0]->from['mailbox']; Also I suggest you turn your PHP Error Level up to E_ALL in your php.ini file (or temporarly at the top of your scripts with error_reporting (E_ALL);, this will help debug programs like this :)) Andrew - Original Message - From: "