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+ |
❮PHPMySQLiリファレンス