objects within arrays

From: Date: Tue, 24 Dec 2002 18:42:52 +0000
Subject: objects within arrays
Groups: php.general 
Request: Send a blank email to php-general+get-129303@lists.php.net to get a copy of this message
Hi, I'm really struggling with this - I'm writing a simple webmail client for myself (because they've blocked the common ones at work hehe) Anyway, as soon as I tried to access.. $header = imap_header($inbox,$msgID); $header->from['mailbox']; ... I get nothing. I did a print_r on that, and I got.. Array ([0] = StdClass Object([personal] = "blah" ); etc... so how do I access the data within the Object bit? a simple $header->from['personal'] refuses to output anything. Sorry to be a pain again, I know this is simple language stuff but I can't find it in the manual. :) Beth Gore -- http://www.habitformer.co.uk

« previous php.general (#129303) next »