note 86263 deleted from control-structures.for by danbrown
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: dezer1[*]web.de
----
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
?>