Answers for "for loop in php w3schools"

PHP
4

php for loop

for($i = 0; $i <=10; $i++){
	echo "The index is $i";
}
Posted by: Guest on July-23-2020
1

for each php

<?php
foreach (array(1, 2, 3, 4) as &$value) {
    $value = $value * 2;
}
?>
Posted by: Guest on October-19-2020

Browse Popular Code Answers by Language