The Wonders of Magic Function

Tutorials Shared by the Internet Community

Advertisements


Synopsis

What this function does is allow you to change the default behaviour when outputting an object instance.

Statistics

  • Total Hits - 16214

  • Total Votes - 102 votes

  • Vote Up - 42 votes

  • Vote Down - 60 votes

  • Domain - www.talkphp.com

  • Category - PHP/Object Oriented

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-16 07:53:15

Description

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. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements