svn: /phpdoc/en/trunk/reference/array/functions/ range.xml

From: Date: Tue, 24 May 2011 20:14:36 +0000
Subject: svn: /phpdoc/en/trunk/reference/array/functions/ range.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8177@lists.php.net to get a copy of this message
salathe Tue, 24 May 2011 20:14:36 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311397 Log: clarify range() parameter purposes (doc #54696) Bug: http://bugs.php.net/54696 (Open) Error: If low > high, the sequence will be from high to low Changed paths: U phpdoc/en/trunk/reference/array/functions/range.xml Modified: phpdoc/en/trunk/reference/array/functions/range.xml =================================================================== --- phpdoc/en/trunk/reference/array/functions/range.xml 2011-05-24 19:31:12 UTC (rev 311396) +++ phpdoc/en/trunk/reference/array/functions/range.xml 2011-05-24 20:14:36 UTC (rev 311397) @@ -9,8 +9,8 @@ &reftitle.description; <methodsynopsis> <type>array</type><methodname>range</methodname> - <methodparam><type>mixed</type><parameter>low</parameter></methodparam> - <methodparam><type>mixed</type><parameter>high</parameter></methodparam> + <methodparam><type>mixed</type><parameter>start</parameter></methodparam> + <methodparam><type>mixed</type><parameter>limit</parameter></methodparam> <methodparam choice="opt"><type>number</type><parameter>step</parameter><initializer>1</initializer></methodparam> </methodsynopsis> <para> @@ -22,18 +22,19 @@ <para> <variablelist> <varlistentry> - <term><parameter>low</parameter></term> + <term><parameter>start</parameter></term> <listitem> <para> - Low value. + First value of the sequence. </para> </listitem> </varlistentry> <varlistentry> - <term><parameter>high</parameter></term> + <term><parameter>limit</parameter></term> <listitem> <para> - High value. + The sequence is ended upon reaching the + <parameter>limit</parameter> value. </para> </listitem> </varlistentry> @@ -54,9 +55,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Returns an array of elements from <parameter>low</parameter> to - <parameter>high</parameter>, inclusive. If low > high, the sequence will - be from high to low. + Returns an array of elements from <parameter>start</parameter> to + <parameter>limit</parameter>, inclusive. </para> </refsect1> <refsect1 role="changelog">

« previous php.doc.cvs (#8177) next »