I have an array and I am trying to access the value for message. I think it is throwing me off because it is an array of objects within an object. Below is what I have tried and the data structure.
Code:
foreach ($result as $value) {
echo "$value[0]->message";
}
Array:
stdClass Object
(
[results] => Array
(
[0] => stdClass Object
(
[message] => 12345
[unit] => test
[createdAt] => 2013-01-21T14:57:26.613Z
[updatedAt] => 2013-01-21T14:57:26.613Z
[objectId] => 0uiYuJcRYY
)
)
)