[Solved] Foreach go up by 1 php


Start the loop at the $ac0->result and then all the properties will be found in the $obj or whatever you like to call it in the foreach loop

foreach ($ac0->result as $idx => $obj) {
    echo "From Array $idx <br>";
    echo $obj->name . "<br>";
    echo $obj->status . "<br>";
    // etc
}

2

solved Foreach go up by 1 php