Here is a test object
[CODE]stdClass Object (
[date] => Tue, 15 May 2012 13:41:22 +0800
[Date] => Tue, 15 May 2012 13:41:22 +0800
[subject] => Smart & Zone
[Subject] => Smart & Zone
[message_id] => <[email protected]>
[toaddress] => WOO WOO
[to] => Array (
[0] => stdClass Object (
[personal] => WOO WOO
[mailbox] => WOO WOO
[host] => example.com.au
) )
[fromaddress] => WOO WOO
[from] => Array (
[0] => stdClass Object (
[personal] => WOO WOO
[mailbox] => WOO WOO
[host] => example.com.au
)
)
[Recent] =>
[Unseen] =>
[Flagged] =>
[Answered] =>
[Deleted] =>
[Draft] =>
[Msgno] => 1
[MailDate] => 15-May-2012 13:41:23 +0800
[Size] => 7046
[udate] => 1337060483
)
I wanted to get the host from the from property.
Here is what I have for calling.
[CODE]($emailCountData->from->0->host == “example.com.au”