Answered by : vincent-otieno
<?php echo "Hello World";
?>
Source : | Last Update : Thu, 29 Apr 21
Answered by : siso
<?php $fruits = ["apple", "banana", "orange"]; for($i=0;$i<count($fruits);$i++){ echo "Index of ".$i."= ".$fruits[$i]."<br>"; } ?>
Source : | Last Update : Sat, 04 Jan 20
Answered by : ankur-prajapati
/*
For loop in php
*/
<?php
for ($i = 0; $i < 10; $i++) { echo $i."<br>";
}
?>
Source : | Last Update : Wed, 13 May 20
Answered by : naly-moslih
<?php
for ($x = 0; $x <= 10; $x++) { echo "The number is: $x <br>";
}
?>
Source : | Last Update : Mon, 30 May 22
Answered by : rayyan-muhammad
for($i = 0; $i <=10; $i++){ echo "The index is $i";
}
Source : | Last Update : Thu, 30 Jul 20
Answered by : khayrul-islam-shanto
for($i = 1; $i > 10; $i++){ //show i value echo "Your Number Is :$i";
}
Source : | Last Update : Fri, 10 Sep 21
Answered by : energetic-echidna-25xkuyxsn5vu
for($i = 0;$i < count($users);$i++) {
if($users[$i]['user_id']==3){
$userName = $users[$i]['first_name'];
}
}
Source : https://techtechinfo.com/how-to-optimize-the-php-two-dimensional-search/ | Last Update : Sat, 15 Jan 22
Answered by : eric-tam
for($i=0; $i<sizeOf($temp); $i++)
{
}
Source : | Last Update : Mon, 11 Jul 22
Answered by : clumsy-crocodile-j29lwkbs9kj2
for($i=0;$i<count($array);$i++){
}
Source : | Last Update : Mon, 29 Aug 22
Answered by : sourabh-kosti
/* while loop example */
while(){
/* this is test */
}
Source : | Last Update : Thu, 12 May 22