How can I loop through the members of an array?



How can I loop through the members of an array? ..

Answer / 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

More PHP Interview Questions

how long a default session stay in php?

8 Answers  


what method is used to get a user's IP address?

2 Answers  


What is php routing?

0 Answers  


when we select some checkboxes and we went for next page if we came back to prevoius page the selcted checkboxe should be checked

2 Answers  


Where do I run php code?

0 Answers  






What is difference between session and cookies in php?

0 Answers  


What types of loops exist in php?

0 Answers  


What is session cookies php?

0 Answers  


How check field is empty or not in php?

0 Answers  


Is php free to use?

0 Answers  


How does php sessions work?

0 Answers  


explain the changes in php version

3 Answers  


Categories