Answers for "PHP loop 1-10 output each value"

PHP
0

php loop x times

for ($i = 1; $i <= 10; $i++) {
    echo $i;
}
Posted by: Guest on September-09-2020
0

foreach loop 1-100 php

<?php

for ($i = 0; $i < 10; $i++){

$product = 10 * $i;

echo "The product of 10 * $i is $product <br/>";
}

?>
Posted by: Guest on April-11-2021

Browse Popular Code Answers by Language