Multiple expressions in for() : for loop « Statement « PHP
- PHP
- Statement
- for loop
Multiple expressions in for()
<?
print '<select name="doughnuts">';for ($min = 1, $max = 10; $min < 50; $min += 10, $max += 10) {
print "<option>$min - $max</option>\n";
}
print '</select>';
?>
Related examples in the same category