interface Stringable implements Stringable (View source)

Defines a "stringable" class which is one that can be converted to a string or cast to a string.

Methods

string
__toString()

String representation of the object.

string
toString()

String representation of the object. For complex objects, this would normally be a JSON string.

Details

string __toString()

String representation of the object.

Return Value

string

String representation of the object

string toString()

String representation of the object. For complex objects, this would normally be a JSON string.

Return Value

string

String representation of the object