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 do you sort an array in php?

0 Answers  


explain the changes in php version

3 Answers  


Define soundex()?

0 Answers  


Tell me how to create a text file in php?

0 Answers  


How can we destroy the cookie in php?

0 Answers  






Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

0 Answers  


How to add different images in php program like a job site.......

2 Answers  


write a program to print [123] [456] [789] note : braces also need to be printed

1 Answers   Net Solution,


how to add file in php?

1 Answers   CTS,


i got 2 year backs in my MCA,i am 28 year guy, presently learning PHP, can i get the job & on facing the interview wht i will answer out for that?? (experience in as a 1.5yr System analyst after graduation)

0 Answers  


what use of <?php

1 Answers   CBS,


Which are the best start and end tags to use?

0 Answers  


Categories