It is necessary to deduce values ​​from a large variable, but instead of them it is displayed "1", how to fix it?

print_r($result); for($i = 0; $i < count($result); $i++ ) { echo($result[$i] -> $first_name).'<br>'; echo($result[$i] -> $last_name).'<br>'; echo($result[$i] -> $uid).'<br>'; echo('=========================================='.'<br>'); }; 

    1 answer 1

     print_r($result); for($i = 0; $i < count($result); $i++ ) { echo $result[$i]['first_name'] . '<br>'; echo $result[$i]['last_name'] . '<br>'; echo $result[$i]['uid'] . '<br>'; echo('=========================================='.'<br>'); }; foreach($result as $el){ echo $el['first_name'] . '<br>'; echo $el['last_name'] . '<br>'; echo $el['uid'] . '<br>'; echo('=========================================='.'<br>'); }