How can I loop through the members of an array?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the delimiter default in PHP?

615


Explain the casts allowed in PHP?

587


How to invoke a user function?

547


What is the difference between php and core php?

493


How can you send http header to the client in php?

504






Explain the difference between mysql_connect and mysql_pconnect?

480


What are the final class and final method?

536


What are php functions?

554


Explain what is the use of "echo" in php?

559


Is php a strongly typed language?

570


What is difference between php and html?

495


What is php compared to html?

543


How to retrieve the original query string?

571


What is the current php version?

556


Explain about PHP cookies?

622