PDO::getAvailableDrivers
Returns an array of the PDO drivers in your PHP installation.
Syntax
array PDO::getAvailableDrivers ();
Return Value
An array with the list of PDO drivers.
Remarks
The name of the PDO driver is used in PDO::__construct, to create a PDO instance.
PDO::getAvailableDrivers is not required to be implemented by PHP drivers. For more information about this method, see the PHP documentation.
Support for PDO was added in version 2.0 of the Microsoft Drivers for PHP for SQL Server.
Example
<?php
print_r(PDO::getAvailableDrivers());
?>
See Also
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ