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 php full form?
What is env in laravel?
How do I run a php file?
What is the use of the function htmlentities?
What percentage of websites use php?
What is the function in PHP do not return a timestamp?
What is xss and csrf?
Can a super () and this () keywords be in same constructor?
How can I load data from a text file into a table?
Is there an easy way to delete an element from a php array?
What is the interface in php?
What is the difference between print() and echo()?
Which variable declarations within a class is invalid in php?
What is zend studio for?
Tell me what does the array operator '===' means?