← All docs

pdo_drivers()

Returns the names of the PDO drivers this build provides.

pdo_drivers()

function pdo_drivers(): array

Returns the names of the PDO drivers this build provides.

Parameters: none.

Returns: array

Availability

  • Compiled (AOT): supported through an injected elephc-PHP prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how pdo_drivers is implemented in the compiler, see the internals page.