InterviewSolution
Saved Bookmarks
| 1. |
Which keyword must be added before $first variable on the third line of the above question to make $second and $first as distinct objects in PHP 5?(a) copy(b) clone(c) cut(d) Can’t add any word to make them distinctI have been asked this question by my school principal while I was bunking the class.I'm obligated to ask this question of Object Advanced Features in portion Objects and Databases in PHP of PHP |
|
Answer» RIGHT ANSWER is (B) clone To elaborate: Clone operates on an object instance, PRODUCING a by-value COPY. |
|