note 86264 added to control-structures.foreach
dezer1
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
if you only want a loop without a "for-loop",
try this easy way:
<?
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: 217.13.201.10
Probable Submitter: 85.179.13.224
----
Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php
Edit -- https://master.php.net/note/edit/86264
Del: integrated -- https://master.php.net/note/delete/86264/integrated
Del: useless -- https://master.php.net/note/delete/86264/useless
Del: bad code -- https://master.php.net/note/delete/86264/bad+code
Del: spam -- https://master.php.net/note/delete/86264/spam
Del: non-english -- https://master.php.net/note/delete/86264/non-english
Del: in docs -- https://master.php.net/note/delete/86264/in+docs
Del: other reasons-- https://master.php.net/note/delete/86264
Reject -- https://master.php.net/note/reject/86264
Search -- https://master.php.net/manage/user-notes.php