![Proper way to get a PHP array() from aggregate() or convert a MongoDB\Driver\Cursor to array() - Drivers & ODMs - MongoDB Developer Community Forums Proper way to get a PHP array() from aggregate() or convert a MongoDB\Driver\Cursor to array() - Drivers & ODMs - MongoDB Developer Community Forums](https://www.mongodb.com/community/forums/uploads/default/original/2X/3/3917b42148e8d2cdec6879104908553b3147c15a.png)
Proper way to get a PHP array() from aggregate() or convert a MongoDB\Driver\Cursor to array() - Drivers & ODMs - MongoDB Developer Community Forums
![stdclass, object to array, laravel object, laravel collection, laravel array, laravel stdclass object, laravel 5.8, toArray,… | New students, Student saving, Custom stdclass, object to array, laravel object, laravel collection, laravel array, laravel stdclass object, laravel 5.8, toArray,… | New students, Student saving, Custom](https://i.pinimg.com/736x/c1/5b/7b/c15b7b3edc71cc9a6859ad8e98a2e7c6.jpg)
stdclass, object to array, laravel object, laravel collection, laravel array, laravel stdclass object, laravel 5.8, toArray,… | New students, Student saving, Custom
![Update single (same) field in every object of an array - Working with Data - MongoDB Developer Community Forums Update single (same) field in every object of an array - Working with Data - MongoDB Developer Community Forums](https://www.mongodb.com/community/forums/uploads/default/original/3X/0/5/0560094cbd4a9a400499fd6a502a3ca4d0584620.png)