PHP mysqli poll() Fungsi
Definisi dan Penggunaan
Fungsi poll() / mysqli_poll() digunakan untuk polling koneksi.
Sintaksis
Gaya berorientasi objek:
$mysqli -> poll(read, error, reject, seconds, microseconds)
Gaya prosedural:
mysqli_poll(read, error, reject, seconds, microseconds)
Nilai Parameter
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 |
Detail Teknis
Nilai Kembali: | Jumlah koneksi yang siap pada sukses. SALAH pada kegagalan |
---|---|
Versi PHP: | 5.3+ |
Referensi PHP MySQLi