A

Admin • 833K Points
Coach

Q. Which magic method is used to create a string representation of an object

  • (A) to string
  • (B) construct
  • (C) destruct
  • (D) get
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

to string magic method is used when an object is treated like a string

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.