There no benefit to fetch array instead of objects from database when you use PDO. PHP object use less memory and same fast or even faster then arrays.
What is the dbalabka/php-objects-vs-arrays-benchmark GitHub project? Description: "There no benefit to fetch array instead of objects from database when you use PDO. PHP object use less memory and same fast or even faster then arrays.". Written in PHP. Explain what it does, its main use cases, key features, and who would benefit from using it.
Question is copied to clipboard — paste it after the AI opens.
Clone via HTTPS
Clone via SSH
Download ZIP
Download master.zipReport bugs or request features on the php-objects-vs-arrays-benchmark issue tracker:
Open GitHub Issues