Answers for "the for statement can intialize a counter php"

PHP
10

for loop php

<?php
	$fruits = ["apple", "banana", "orange"];
	for($i=0;$i<count($fruits);$i++){
    echo "Index of ".$i."= ".$fruits[$i]."<br>";
    }
  ?>
Posted by: Guest on December-28-2019
0

$s = [1,2,3] for loop use in php

$x = [1,2,3]
Posted by: Guest on December-09-2020

Browse Popular Code Answers by Language