SyntaxFix
Write A Post
Hire A Developer
Questions
Assuming your sm_id and c_id properties are public, you can access them by using a foreach on the array:
sm_id
c_id
foreach
$array = array(/* objects in an array here */); foreach ($array as $obj) { echo $obj->sm_id . '<br />' . $obj->c_id . '<br />'; }