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
Is php still in demand?
Swap two variables value without using third variable in php ?
How to write in a file in php?
When to use inquire vs enquire?
Tell me what is the difference between get and post?
How to track user logged out or not? When user is idle?
Explain how can we increase the execution time of a php script?
What is the different between count() and sizeof() in php?
What is the difference between myisam and innodb?
What is the method to execute a php script from the command line?
What is Type hinting in PHP?
Why and where do we use htaccess?
How to uploaded files to a table?
What are the ways to define a constant in php?
What is interface? Why it is used?