Explain what is the difference between for and foreach?
Answer / Chandra Has Mahehswari
`for` is a loop that iterates over a specific number of times, while `foreach` is used to loop through arrays or objects. `for` is more suitable when you know exactly how many iterations will be required.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which variable declarations within a class is invalid in php?
Tell me what is the default session time in php?
What are the main error types in php?
Is php front end or back end?
Does php have block scope?
What is html used for?
How can we submit a form without a submit button?
What are the disadvantages of php?
What are the 5 types of variables?
what is "mysql_pconnect", i know mysql_connect but what it is pconnect is their?
Does exist in php?
does PHP support foreign key and Rollback?yes or not.if not then why. how will you done these concept in php?
1 Answers Avanigoradia, Primus Global,