Answers for "php loop examples"

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
1

php loop statement

do
{
    code to be executed
}
while (condition)
Posted by: Guest on May-31-2020

Browse Popular Code Answers by Language