PHP mysqli poll() Funksie
Definisie en gebruik
Die poll() / mysqli_poll() funksie word gebruik om verbindings te stem.
Sintaksis
Objekgeoriënteerde styl:
$mysqli -> poll(read, error, reject, seconds, microseconds)
Prosedure styl:
mysqli_poll(read, error, reject, seconds, microseconds)
Parameterwaardes
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 |
Tegniese besonderhede
Terugkeerwaarde: | Die aantal gereed verbindings op sukses. ONWAAR op mislukking |
---|---|
PHP weergawe: | 5,3+ |
❮ PHP MySQLi-verwysing