PHP mysqli โพล ()ฟังก์ชั่น
ความหมายและการใช้งาน
ใช้ฟังก์ชัน 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 อ้างอิง