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 distinct
Answer:A
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 distinct
Explanation: Clone operates on an object instance, producing a by-value copy.