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

Is it more secure to use cookies to transfer session ids?

0 Answers  


Explain me what is the importance of "method" attribute in a html form?

0 Answers  


What are the different loops in php?

0 Answers  


How to upload any files extension in our database Ex.(.doc,.txt,mp4,mp3 etc.)in php

1 Answers  


Does facebook use php framework?

0 Answers  


What does nan stand for computer science?

0 Answers  


Which is not a php magic constant?

0 Answers  


What is php rest api?

0 Answers  


hi sir am kiran kumar finished my mca 2009 passed out sir .. i have more doubts regarding open source technologies sir if we pass zend exam in php can we get a job opportunity in foreign countries sir and is it good demand for php compared to dot net and java and some other technologies like sap , erp sir bcoz my friends saying they are finished dot net and java courses they telling in php we cannot earn more and we cannot go onsite opportunity even big companies not dealing with php is it right ah sir ? please send ur valuable suggestions to my email sir kiranpulsar2007@gmail.com please send ur phone number also sir thanking u sir

1 Answers  


What is a php object?

0 Answers  


Dear Sir, i am a frasher and now i got a job offer from AentteQ Software Technologies for PHP developer.. so i am in confusion that is PHP correct for my carrer or i shud choose other then php for my carrer...plz suggest me

4 Answers   NIIT,


What is the content of /etc directory?

0 Answers  


Categories