Are objects passed by value or by reference?
Answer / Shaziya Rahman
In PHP, objects are passed by reference by default. If you want to pass an object by value, you can use the clone operator.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is it easy to learn php?
How to get the number of visitors in a site?
how can attached a file to a mail and attached a resume to a mail and received in id
What is php and its advantages?
How does php isset work?
How to get number of days between two given dates using PHP?
What are the correct and the most two common way to start and finish a PHP block of code?
What does php exit do?
What is the importance of php?
How to execute an sql query? How to fetch its result?
Do you know when sessions ends?
What is array filter in php?