what is the diffrence between for and foreach?
Answer Posted / ks.tarun
FOR loop will continue until some condition fails, but in
case of foreach loop will work until all item are processed.
Is This Answer Correct ? | 18 Yes | 5 No |
Post New Answer View All Answers
How do you clear environment variables?
How can I display text with a php script?
What is better .net or php?
How to test if a variable is an array?
What is difference between echo and print_r in php?
How to join multiple strings stored in an array into a single string?
What does $this do in php?
Which is better get or post method?
Tell me what are the different types of errors in php?
Tell me what is the difference between unset() and unlink()?
Explain about the data types in PHP?
Do you know what are traits?
Explain php explode() function.
How to create a session? How to set a value in session? How to remove data from a session?
What is the use of the function htmlentities?