note 19653 deleted from function.range by nlopess
| From: | nlopess@php.net | Date: | Sun, 08 Jan 2006 14:54:04 +0000 |
| Subject: | note 19653 deleted from function.range by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101412@lists.php.net to get a copy of this message | ||
Note Submitter: auscoff at no-spam dot yahoo dot com
----
If you set number range via variables (eg., range($from, $to)) make sure
you've set type of the variables to integer or your code won't work with version 4.1.0 and
above.
$from = 0;
$to = 7;
foreach( range((int) $from, (int) $to) as $number ) {
print "$number\n";
}