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
What php framework does wordpress use?
Do you have to initialize variables in php?
Explain about PHP cookies?
How to get the length of string?
What difference between require() and require_once()?
What are sql injections, how do you prevent them and what are the best practices?
How to select a database in php?
What are the main error types in php and how do they differ?
Tell me how the result set of mysql be handled in php?
Which functions are used to count the total number of array elements in php?
What are the difference between echo and print?
How do you clear environment variables?
How to get the IP address of the client/user in PHP?
What is mysql_fetch_object?
What is memcache?