A

Admin • 832.27K Points
Coach

Q. What is the purpose of the 'clone' keyword in PHP?

  • (A) Creates a copy of an object
  • (B) Closes the object
  • (C) Deletes an object
  • (D) Imports another class
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

'clone' is used to make a shallow copy of an object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.