Next Oct 15 Previous
I've got the object on a string.
Arbitrary objects can be cast to strings or used in functions like echo
(whoops, language construct) or substr()
, but these objects need to implement a magic function first. Which one is this:
A: __get()
B: __toString()
C: __invoke()
D: __to_string()