PHP 8.1 RFC: MySQLi bind in execute

MySQLi bind in execute
PHP 8.1
Implemented

RFC Vote: MySQLi bind in execute

Implemented
-
> 50%
Yes: 32No: 0

MySQLi bind in execute

TypeNew Feature
Version PHP 8.1

An RFC that proposes to improve the current MySQLi's mysqli_stmt::execute() method to work similar to the PDO's PDOStatement::execute().

The improved mysqli_stmt::execute() will accept an array of parameters that will be bound to the query, and will be more cleaner compared to the current workflow of calling mysqli_stmt::bind_param that requires parameters to be passed by reference.

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.