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 the difference between characters 23 and x23?
What is split function in php?
What is php routing?
What are the main error types in php and how do they differ?
What does the php error 'parse error in php - unexpected t_variable at line x' means?
What is filter_var?
How does csrf token work?
Which function Returns the time of sunrise for a given day / location in PHP.
What does $_cookie means?
What is the role of php?
What is string in php?
Which programming language does php resemble to?
Tell me what is the main difference between php 4 and php 5?
What is composer install?
Does session expire on closing browser?