PHP mysqli poll() Functie
Definitie en gebruik
De poll() / mysqli_poll() functie wordt gebruikt om verbindingen te pollen.
Syntaxis
Objectgeoriënteerde stijl:
$mysqli -> poll(read, error, reject, seconds, microseconds)
Procedurele stijl:
mysqli_poll(read, error, reject, seconds, microseconds)
Parameterwaarden
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 |
Technische details
Winstwaarde: | Het aantal kant-en-klare verbindingen op succes. ONWAAR bij fout |
---|---|
PHP-versie: | 5.3+ |
❮ PHP MySQLi-referentie