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 참조