wsp_m0/www/public/upp2/loop.php

13 lines
177 B
PHP
Raw Normal View History

2024-09-03 12:45:07 +00:00
<?php
echo "FOR:<br>";
for ($i = 1.0; $i < 5; $i+= 0.1 ) {
echo $i . ", ";
}
echo "<br>";
echo "WHILE:<br>";
$i = 1.0;
while($i < 5) {
echo $i . ", ";
$i+= 0.1;
}
?>