How can I loop through the members of an array?
Answer Posted / jude jeevanraj.p
If you want to create a quick and easy loop to show the
values of an array, then all you need is the trusty foreach
control structure, thus:
<?php
$alphabet = range("A","Z");
foreach
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Is php the same as html?
What are some new features introduced in php7?
What are the different filter functions used to filter a variable?
How to move uploaded files to permanent directory?
What are the uses of explode() and implode() functions?
Is php coding easy?
What is the difference between php and java?
What is isset php?
How can we calculate the similarity between two strings?
What is the use of mvc in php?
What are php parameters?
Can age be a variable?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What is alias in php?
Can you pass an array into a function?