what is the diffrence between for and foreach?
Answer Posted / ajay jain
for() is a simply a loop which is execute to the given
condition but foreach given as array parameter return as
content of array
| Is This Answer Correct ? | 22 Yes | 5 No |
Post New Answer View All Answers
Is php is dying?
What is difference between static and constant in php?
Does php support function overloading?
Why do we use php?
How to assigning a new character in a string using php?
How to pass an argument to a function?
What are the uses of explode() and implode() functions?
What are the different ways to login to a remote server?
How can we calculate the similarity between two strings?
How to block direct directory access in PHP?
How to create a mysql connection in php?
What is the function of mysql_real_escape_string in php?
Is rent a variable cost?
Explain the difference b/w static and dynamic websites?
Which is faster for or foreach php?