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

What is the salary for php developer(Fresher)?

1 Answers  


What's diffrence between Get() and Post() Function

7 Answers  


How can a cross-site scripting attack be prevented by php?

0 Answers  


Is array empty php?

0 Answers  


What is namespace and use in php?

0 Answers  






What is the purpose of using php?

0 Answers  


Who is the father of php?

0 Answers  


does PHP support foreign key and Rollback?yes or not.if not then why. how will you done these concept in php?

1 Answers   Avanigoradia, Primus Global,


Is nan in php?

0 Answers  


What are the __construct() and __destruct() methods in a php class?

0 Answers  


What function do we use to find length of string, and length of array?

0 Answers  


What are the reasons for selecting lamp (linux, apache, mysql, PHP) instead of combination of other software programmes, servers and operating systems?

3 Answers  


Categories