for loop php
<?php
$fruits = ["apple", "banana", "orange"];
for($i=0;$i<count($fruits);$i++){
echo "Index of ".$i."= ".$fruits[$i]."<br>";
}
?>
for loop php
<?php
$fruits = ["apple", "banana", "orange"];
for($i=0;$i<count($fruits);$i++){
echo "Index of ".$i."= ".$fruits[$i]."<br>";
}
?>
while loop php
<?php
$a = 0;
while($a<=5){
echo $a."<br>";
$a++;
}
?>
php for loop
for($i = 0; $i <=10; $i++){
echo "The index is $i";
}
do while php
<?php
$i = 0;
do {
echo $i;
} while ($i > 0);
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us