Initial documentation

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@188538 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-06-16 13:12:41 +00:00
parent 9ea6d363b9
commit 1dc9701713

View file

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
<refentry id="function.pdo-drivers">
<refnamediv>
<refname>pdo_drivers</refname>
<refpurpose>
Return an array of available PDO drivers
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>pdo_drivers</methodname>
<void/>
</methodsynopsis>
&warn.experimental.func;
<para>
This function returns all currently available PDO drivers which can be used
in <parameter>DSN</parameter> parameter of
<function>PDO::__construct</function>.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<function>pdo_drivers</function> 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 <function>pdo_drivers</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
print_r(pdo_drivers());
?>
]]>
</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
-->