mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
longopts
# 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:
parent
01208e94e3
commit
392e02ad3c
1 changed files with 7 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue