mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Add note toi range() function
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@51038 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5a55ae5cec
commit
2c6b660b34
1 changed files with 11 additions and 2 deletions
|
@ -2688,19 +2688,28 @@ Array
|
|||
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;
|
||||
}
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue