what is the diffrence between for and foreach?
Answer Posted / swapnil
well when we use for loop it will execute only for the time
we have mentioned in loop ie ex for(i=0;i<25;i++) 25 times
whereas foreach is used only when we dont know that limit it
may be the case when we perform operation on database queries
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
What is difference between ksort() and usort() functions.
What new features php7 has in store for us?
Is php an oop?
What is the content of /etc directory?
What is echo and print in php?
How many different types of messages available in php?
Does php pass arrays by reference?
How to define a user function?
Is php 7 backwards compatible?
What is a comment in php?
What does a special set of tags do in php?
How to return ascii value of character in php?
Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?
Which cryptographic functions in php returns the longest hash value?