Intermediate
PHP
Q60 / 100
What is PHP's object cloning?
Correct! Well done.
Incorrect.
The correct answer is B) Creating a shallow copy of an object with clone, triggering __clone() if defined
B
Correct Answer
Creating a shallow copy of an object with clone, triggering __clone() if defined
Explanation
$copy = clone $original; creates a shallow copy. Define __clone() to perform deep copies of nested objects.
Progress
60/100