Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

for loop php

<?php
	$fruits = ["apple", "banana", "orange"];
	for($i=0;$i<count($fruits);$i++){
    echo "Index of ".$i."= ".$fruits[$i]."<br>";
    }
  ?>
 
PREVIOUS NEXT
Tagged: #loop #php
ADD COMMENT
Topic
Name
8+1 =