what is the diffrence between for and foreach?
Answer Posted / web developer
for loop is to do something over and over again until the
task has been completed.
foreach works only on arrays. even it will run the loop
until end of the array.
Is This Answer Correct ? | 120 Yes | 8 No |
Post New Answer View All Answers
What is difference between base_url and site_url?
What do you mean range() in php?
Which function would you use to determine the length of a string in php?
How to create an array of a group of items inside an html form?
How can I use single quotes in single quotes in php?
How to find the index of an element in an array php?
How do you use end in python?
how can i develop forum code? any one pleale help me on this question
What is use of htmlspecialchars php?
What is the difference between a session and cookies?
How do you destroy a particular or all Sessions?
What is an associative array?
Explain which cryptographic extension provide generation and verification of digital signatures?
What is htmlspecialchars?
What are the rules for naming a php variable?