Q. Which magic method is used to return a string representation of an object?
β
Correct Answer: (A)
__toString()
Explanation: __toString() is used when an object is treated like a string.