__toString « Class « PHP






1.__toString( ) set a string value for the object that will be used if the object is ever used as a string.
2.Defining a class's stringification
3.Using the __toString() Method