This question already has an answer here:
- How can I access an array/object? 4 answers
I get an array from the following result
echo "<pre>";
print_r($sorted);
echo "</pre>";
The resulting array is
Array
(
[0] => stdClass Object
(
[date] => Tue, 17 Nov 2015 15:58:46 +0530
[subject] => one
[toaddress] => ABC
[fromaddress] => QWE
[from] => Array
(
[0] => stdClass Object
(
[personal] => QAZ
[mailbox] => ADS
)
)
)
[1] => stdClass Object
(
[date] => Tue, 16 Nov 2015 15:58:46 +0530
[subject] => two
[toaddress] => hgf
[fromaddress] => mlk
[from] => Array
(
[0] => stdClass Object
(
[personal] => vbn
[mailbox] => zxc
)
)
)
[2] => stdClass Object
(
[date] => Tue, 15 Nov 2015 15:58:46 +0530
[subject] => three
[toaddress] => rty
[fromaddress] => uio
[from] => Array
(
[0] => stdClass Object
(
[personal] => asd
[mailbox] => fgh
)
)
)
)
I wish to get the the values of [date], [subject], [personal]. i tried this sol but it didnt gave the result. can anyone please tell how i can fetch these values
</div>