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 to set session expire(session timeout) using php code

2 Answers  


What are the differences between public, private, protected, static, transient, final and volatile?

3 Answers  


What is the difference between == and === operator in PHP?

0 Answers  


What was the old name of php?

0 Answers  


Tell me what is the main difference between require() and require_once()?

0 Answers  


What version of php do I have windows?

0 Answers  


Explain $_FILES Superglobal Array?

0 Answers  


What are the different types of Errors in PHP?

20 Answers   Cisco, TCS, Troop Software,


What the limitation of header() function in php?

0 Answers  


What's the difference between accessing a class method via -> and via ::?

0 Answers  


How can you increase the maximum execution time of a script in php?

0 Answers  


When is a conditional statement ended with an endif?

0 Answers  


Categories