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
How to send a cookie to the browser?
What is Type hinting in PHP?
What is the use of preg_match in php?
How does php isset work?
What is a PHP accelerator?
Why is php used for web development?
How can we get ip address of a client in php?
What kind of things have you done on the social side?
What is the difference between $argv and $argc? Give example?
what are the differences between php and perl
Can php run without apache?
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
What is global array in php?
What does sign mean php?
How to get the total number of values in an array?