rasmus Mon Jul 9 21:10:36 2001 EDT Modified files: /phpdoc/en/functions array.xml Log: Add note toi range() function Index: phpdoc/en/functions/array.xml diff -u phpdoc/en/functions/array.xml:1.79 phpdoc/en/functions/array.xml:1.80 --- phpdoc/en/functions/array.xml:1.79 Mon Jul 9 16:38:39 2001 +++ phpdoc/en/functions/array.xml Mon Jul 9 21:10:36 2001 @@ -2688,7 +2688,7 @@ inclusive. If low > high, the sequence will be from high to low. <example> - <title><function>range</function> example</title> + <title><function>range</function> examples</title> <programlisting role="php"> foreach(range(0,9) as $number) { echo $number; @@ -2696,11 +2696,20 @@ foreach(range('a','z') as $letter) { echo $letter; } +foreach(range('z','a') as $letter) { + echo $letter; +} </programlisting> </example> </para> + <note> + <para> + Prior to version 4.0.7 the range() function only generated incrementing +integer arrays. + Support for character sequences and decrementing arrays was added in 4.0.7. + </para> + </note> <para> - See <function>shuffle</function> for an example of its use. + See <function>shuffle</function> for another example of its use. </para> </refsect1> </refentry>
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Hartmut Holzgraefe
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Stig Bakken
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Daniel Beckham
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Egon Schmid
- Re: [PHP-DOC] cvs: phpdoc /en/functions array.x... Daniel Beckham
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Rasmus Lerdorf
- Re: [PHP-DOC] cvs: phpdoc /en/functions array.xml Rasmus Lerdorf
- Re: [PHP-DOC] cvs: phpdoc /en/functions array.x... Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jon Parise
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Hojtsy Gabor
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Marco Cucinato
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Marco Cucinato