Функция PHP mysqli poll()
Определение и использование
Функция poll()/mysqli_poll() используется для опроса соединений.
Синтаксис
Объектно-ориентированный стиль:
$mysqli -> poll(read, error, reject, seconds, microseconds)
Процедурный стиль:
mysqli_poll(read, error, reject, seconds, microseconds)
Значения параметров
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 |
Технические детали
Возвращаемое значение: | Количество готовых подключений в случае успеха. FALSE в случае неудачи |
---|---|
Версия PHP: | 5.3+ |
❮ Справочник по PHP MySQLi