PHP - Manual: pg_consume_input
2025-10-24
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
pg_consume_input — Reads input on the connection
pg_consume_input() consumes any input waiting to be read from the database server.
connectionPgSql\Connection 实例。
true if no error occurred, or false if there was an error. Note that
true does not necessarily indicate that input was waiting to be read.
| 版本 | 说明 |
|---|---|
| 8.1.0 |
现在 connection 参数接受 PgSql\Connection
实例,之前接受 resource。
|
官方地址:https://www.php.net/manual/en/function.pg-consume-input.php