>From [EMAIL PROTECTED] Tue Jun 3 13:08:07 2003 Message-ID: <[EMAIL PROTECTED]> Date: Tue, 03 Jun 2003 13:08:51 +0200 From: Mehdi <[EMAIL PROTECTED]> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313 X-Accept-Language: en MIME-Version: 1.0 CC: [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-3.5 required=5.0 tests=IN_REP_TO,MISSING_HEADERS version=2.20 X-Spam-Level: Subject: Re: [PHP-DOC] cvs: phpdoc /en/reference/strings/functions number-format.xml
Hi, I was thinking, is there a way to have a new structure for the protos definitions ? As this commit shows it, the current system suffers from some lacks. We can't express the optional arguments as we want. There's also a problem when we want to express the fact that two optionnal parameters must be provided together (something like int my_function(param1, [param2, param3 [param4, param5] ..]) ) Anyone with _the_ solution ? Mehdi John Coggeshall wrote: > john Tue Jun 3 06:34:50 2003 EDT > > Modified files: > /phpdoc/en/reference/strings/functions number-format.xml > Log: > Fixed a minor annoyance. you can have 1, 2, or 4 parameters but not three > and the proto was incorrect. > > > Index: phpdoc/en/reference/strings/functions/number-format.xml > diff -u phpdoc/en/reference/strings/functions/number-format.xml:1.3 > phpdoc/en/reference/strings/functions/number-format.xml:1.4 > --- phpdoc/en/reference/strings/functions/number-format.xml:1.3 Fri May 30 > 12:36:18 2003 > +++ phpdoc/en/reference/strings/functions/number-format.xml Tue Jun 3 06:34:50 > 2003 > @@ -1,5 +1,5 @@ > <?xml version="1.0" encoding="iso-8859-1"?> > -<!-- $Revision: 1.3 $ --> > +<!-- $Revision: 1.4 $ --> > <!-- splitted from ./en/functions/math.xml, last change in rev 1.2 --> > <refentry id="function.number-format"> > <refnamediv> > @@ -12,8 +12,13 @@ > <type>string</type><methodname>number_format</methodname> > <methodparam><type>float</type><parameter>number</parameter></methodparam> > <methodparam > choice="opt"><type>int</type><parameter>decimals</parameter></methodparam> > - <methodparam > choice="opt"><type>string</type><parameter>dec_point</parameter></methodparam> > - <methodparam > choice="opt"><type>string</type><parameter>thousands_sep</parameter></methodparam> > + </methodsynopsis> > + <methodsynopsis> > + <type>string</type><methodname>number_format</methodname> > + <methodparam><type>float</type><parameter>number</parameter></methodparam> > + <methodparam><type>int</type><parameter>decimals</parameter></methodparam> > + <methodparam><type>string</type><parameter>dec_point</parameter></methodparam> > + > <methodparam><type>string</type><parameter>thousands_sep</parameter></methodparam> > </methodsynopsis> > <para> > <function>number_format</function> returns a formatted version of > > > -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php