(PHP 5 >= 5.3.0, PHP 7, PHP 8)
mysqli::reap_async_query -- mysqli_reap_async_query — Get result from async query
Object-oriented style
Procedural style
Get result from async query.
Note:
Available only with mysqlnd.
mysql
Procedural style only: A mysqli object returned by mysqli_connect() or mysqli_init()
Returns false
on failure. For successful queries which produce a result set, such as SELECT, SHOW, DESCRIBE
or EXPLAIN
, mysqli_reap_async_query() will return a mysqli_result object. For other successful queries, mysqli_reap_async_query() will return true
.
If mysqli error reporting is enabled (MYSQLI_REPORT_ERROR
) and the requested operation fails, a warning is generated. If, in addition, the mode is set to MYSQLI_REPORT_STRICT
, a mysqli_sql_exception is thrown instead.