Re: mysqli_fetch_all(MYSQLI_OBJECT)
| From: | Gareth Peters | Date: | Sat, 12 Apr 2025 10:28:55 +0000 |
| Subject: | Re: mysqli_fetch_all(MYSQLI_OBJECT) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127099@lists.php.net to get a copy of this message | ||
On Sunday, 23 February 2025 at 02:57:07 GMT, Gareth Peters wrote:
Hi all
I've written code to expand the functionality of mysqli_fetch_all. It allows you to fetch all
results as objects rather than just arrays. It has the same features as fetch_object, such as being
able to specify the name of a class to instantiate and being able to pass in an array of constructor
arguments.
Is this feature likely to be of wider interest? If yes I can set aside time to work on an RFC.
Gareth
----------------------
On Sunday, 23 February 2025 at 03:09:38 GMT, Kamil Tekiela wrote:
Hi,
Could you share the implementation?
Regards,
Kamil
----------------------
On Sunday, 23 February 2025 at 02:57:07 GMT, Gareth Peters wrote:
Hi Kamil
https://github.com/ecvej/php-src/tree/mysqli-fetch-all-objects
Gareth
----------------------
Hi Kamil et al - did you have an thoughts on whether this feature is worth adding?