note 128888 added to function.range
| From: | VivienG at main dot php dot net | Date: | Fri, 15 Sep 2023 12:25:54 +0000 |
| Subject: | note 128888 added to function.range | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220848@lists.php.net to get a copy of this message | ||
They forgot to say something.
If the ending value not encounter the last sequence, the function return false.
In other words :
Given a int $n, if ( $start + $n * $step ) < $end and ( $start + ( $n + 1 ) * $step ) > $end,
the function doen't give the maximum possible range, it returns a boolean.
So the last range number HAVE TO BE the end number.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 2a01:cb08:a4:b100:b089:aebf:99a2:ccbf)
----
Manual Page -- https://php.net/manual/en/function.range.php
Edit -- https://main.php.net/note/edit/128888
Del: integrated -- https://main.php.net/note/delete/128888/integrated
Del: useless -- https://main.php.net/note/delete/128888/useless
Del: bad code -- https://main.php.net/note/delete/128888/bad+code
Del: spam -- https://main.php.net/note/delete/128888/spam
Del: non-english -- https://main.php.net/note/delete/128888/non-english
Del: in docs -- https://main.php.net/note/delete/128888/in+docs
Del: other reasons-- https://main.php.net/note/delete/128888
Reject -- https://main.php.net/note/reject/128888
Search -- https://main.php.net/manage/user-notes.php