Función PHP mysqli poll()
Definición y uso
La función poll() / mysqli_poll() se usa para sondear las conexiones.
Sintaxis
Estilo orientado a objetos:
$mysqli -> poll(read, error, reject, seconds, microseconds)
Estilo procesal:
mysqli_poll(read, error, reject, seconds, microseconds)
Valores paramétricos
Parameter | Description |
---|---|
read | Required. Specifies a list of connections to check for outstanding results that can be read |
error | Required. Specifies a list of connections on which an error occurred, like query failure or lost connection |
reject | Required. Specifies a list of connections rejected because no asynchronous query has been run on for which the function could poll results |
seconds | Required. Specifies the maximum number of seconds to wait |
microseconds | Optional. Specifies the maximum number of microseconds to wait. Default is 0 |
Detalles técnicos
Valor devuelto: | El número de conexiones listas en caso de éxito. FALSO en falla |
---|---|
Versión PHP: | 5.3+ |
❮ Referencia PHP MySQLi