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
When to use single quotes, double quotes, and backticks?
What is use of header() function in php? What the limitation of header()?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
What is inheritance in php?
How to check whether a number is prime or not?
What the use of var_dump()?
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
which will print out the php call stack?
What is Type hinting in PHP?
What is polymorphism with example in php?
Is php an array?
What is the difference between runtime exception and compile time exception?
What is empty php?
What is $_ get and $_ post in php?
What is $_ get?