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
What is the importance of "action" attribute in a html form?
Explain object-oriented methodology in php?
How to enable error reporting in php?
How to check a variable is array or not in php?
Tell me how to create a session? How to set a value in session? How to remove data from a session?
How cookies are trported from browsers to servers?
When to use inquire vs enquire?
Explain mail function in PHP with syntax?
How do you check if a variable has not been set in php?
How to convert a json string to an array in php?
What are the ways to define a constant in php?
What is difference between sql and php?
What are the different ways to login to a remote server?
What is abstract class php?
Explain the difference between isset() and empty()?