Source Code:
(back to article)
<?php // Example 1 for ($i = 0; $i < 5; $i++): echo $i . PHP_EOL; endfor; // Output: 01234 // Example 2 for ($i = 10; $i > 0; $i--): echo $i; endfor; // Output: 10987654321
Result:
Report an issue