The Wonders of Magic Function: __toString()
For this article we’ll be looking at the __toString magic function, and a very handy function it is to. What this function does is allow you to change the default behaviour when outputting an object instance.
Views: 565 | | by Stephen
View this tutorial