PHP 8.1 RFC: Add fetch_column method to MySQLi

Add fetch_column method to MySQLi
PHP 8.1
Accepted

RFC Vote: Add fetch_column method to MySQLi

Accepted
-
> 50%
Yes: 18No: 2

Add fetch_column method to MySQLi

TypeNew Feature
Version PHP 8.1

This RFC proposes to add a new fetch_column method to the mysqli_result class.
With this new fetch_column method, it's possible to fetch a single field from a database query without having to fetch an object or an array of results.

Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.