I have an array like below
stdClass Object
(
[1] => stdClass Object
(
[title] =>
[description] =>
)
)
how can i get the description field in php
I have an array like below
stdClass Object
(
[1] => stdClass Object
(
[title] =>
[description] =>
)
)
how can i get the description field in php
like this:
foreach($parentObject as $childObject){
echo $childObject->description;
//or $childObject['description'] if childObject is array
}