note 86263 added to control-structures.for
dezer1
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Try this for a easy loop (10 times):
<?
foreach(range(0,9) as $val)
{
echo $val.' test ';
}
// Output:
//0 test 1 test 2 test 3 test 4 test 5 test 6 test 7 test 8 test 9 test
?>
----
Server IP: 212.124.37.9
Probable Submitter: 85.179.13.224
----
Manual Page -- http://www.php.net/manual/en/control-structures.for.php
Edit -- https://master.php.net/note/edit/86263
Del: integrated -- https://master.php.net/note/delete/86263/integrated
Del: useless -- https://master.php.net/note/delete/86263/useless
Del: bad code -- https://master.php.net/note/delete/86263/bad+code
Del: spam -- https://master.php.net/note/delete/86263/spam
Del: non-english -- https://master.php.net/note/delete/86263/non-english
Del: in docs -- https://master.php.net/note/delete/86263/in+docs
Del: other reasons-- https://master.php.net/note/delete/86263
Reject -- https://master.php.net/note/reject/86263
Search -- https://master.php.net/manage/user-notes.php