# I am not sure which platforms have getopt_long()


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@166161 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2004-08-12 17:31:20 +00:00
parent 01208e94e3
commit 392e02ad3c

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<refentry id="function.getopt">
<refnamediv>
<refname>getopt</refname>
@ -10,12 +10,18 @@
<methodsynopsis>
<type>array</type><methodname>getopt</methodname>
<methodparam><type>string</type><parameter>options</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>longopts</parameter></methodparam>
</methodsynopsis>
<para>
Returns an associative array of option / argument pairs based on the
options format specified in <parameter>options</parameter>, or &false;
on an error.
</para>
<para>
On platforms that have C function getopt_long, long options can be
specified with parameter <parameter>longopts</parameter>. It is available
since PHP 4.3.0.
</para>
<para>
<informalexample>
<programlisting role="php">