Answers for "Demonstrate the use of Loops and arrays in PHP"

PHP
1

php loop through array

$letters = ['a','b','c'];
foreach ($letters as $item) {
  echo $item;
}
Posted by: Guest on October-01-2020
4

php for loop

for($i = 0; $i <=10; $i++){
	echo "The index is $i";
}
Posted by: Guest on July-23-2020

Code answers related to "Demonstrate the use of Loops and arrays in PHP"

Browse Popular Code Answers by Language