[Solved] How to use objects in an array (php)?
You can get it by using foreach($a as $object){ echo $object->name; } You can get the secondname by using echo $a[1]->name; Working example : https://3v4l.org/sdT7E 2 solved How to use objects in an array (php)?