Re: cvs: phpdoc /en/reference/strings/functions number-format.xml

From: Date: Tue, 03 Jun 2003 11:08:51 +0000
Subject: Re: cvs: phpdoc /en/reference/strings/functions number-format.xml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354217@lists.php.net to get a copy of this message
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


« previous php.doc (#969354217) next »