Current Location: Home> Function Categories> mysqli::poll

mysqli::poll

(mysqli_poll) Poll Connection
Name:mysqli::poll
Category:MySQLi
Programming Language:php
One-line Description:Poll the connection.

Definition and usage

poll() / mysqli_poll() function is used to poll connections.

Example

grammar

Object-oriented style:

 $mysqli -> poll ( read , error , reject , seconds , microseconds )

Procedural Style:

 mysqli_poll ( read , error , reject , seconds , microseconds )
parameter describe
read Required. Specifies a list of connections to check for readable unfinished results.
error Required. Specifies a list of connections where an error occurs, such as query failure or connection loss.
reject Required. Specifies a list of rejected connections, because no asynchronous query is run, the function cannot poll the result.
seconds Required. Specifies the maximum number of seconds to wait.
microseconds Optional. Specifies the maximum number of microseconds to wait. The default value is 0.
Similar Functions
Popular Articles