PHP mysqli poll() Funkcja
Definicja i użycie
Funkcja poll() / mysqli_poll() służy do odpytywania połączeń.
Składnia
Styl zorientowany obiektowo:
$mysqli -> poll(read, error, reject, seconds, microseconds)
Styl proceduralny:
mysqli_poll(read, error, reject, seconds, microseconds)
Wartości parametrów
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 |
Szczegóły techniczne
Wartość zwrotu: | Liczba gotowych połączeń po pomyślnym zakończeniu. FAŁSZ w przypadku niepowodzenia |
---|---|
Wersja PHP: | 5,3+ |
Dokumentacja PHP MySQLi