php-doc-en/reference/pdo/functions/PDO-getAvailableDrivers.xml
Hannes Magnusson c030e2adf7 Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00

81 lines
1.9 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<refentry xml:id="function.PDO-getAvailableDrivers" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>PDO->getAvailableDrivers()</refname>
<refpurpose>
Return an array of available PDO drivers
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<classsynopsis>
<ooclass><classname>PDO</classname></ooclass>
<methodsynopsis>
<type>array</type><methodname>getAvailableDrivers</methodname>
<void/>
</methodsynopsis>
</classsynopsis>
<para>
This function returns all currently available PDO drivers which can be used
in <parameter>DSN</parameter> parameter of
<xref linkend="function.PDO-construct" />. This is a static method.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<xref linkend="function.PDO-getAvailableDrivers" /> returns an array of PDO driver names. If
no drivers are available, it returns an empty array.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>A <xref linkend="function.PDO-getAvailableDrivers" /> example</title>
<programlisting role="php">
<![CDATA[
<?php
print_r(PDO::getAvailableDrivers());
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
Array
(
[0] => mysql
[1] => sqlite
)
]]>
</screen>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->