what is the diffrence between for and foreach?
Answer Posted / krunal gohel
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 ? | 15 Yes | 6 No |
Post New Answer View All Answers
What is composer json?
Can we extend multiple classes in php?
What is memcache?
What is difference between static and final in php?
What is php regular expression?
What is the use of imagetypes() method?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is the importance of php?
What is different between software and app
Explain what does $_server means?
What is the importance of parser in php?
Explain what are some new features introduced in php7?
Which is not a php magic constant?
Where are the persistent cookies stored on your computer?
Is null in php?