Tell me are objects passed by value or by reference?
Answer Posted / Gaurav Rastogi
In PHP, objects are passed by reference by default. When you pass an object to a function, the function receives a reference to the original object, not a copy of it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers