| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Base |
JObject |
toString |
toString() |
Never | Work in Progress |
Object-to-string conversion. This function is empty and can be redefined by subclasses.
string toString ()
In the base class, this function returns the name of the class to which the object belongs.
Example
$object = new JObject(); echo $object->toString();
Might produce:
Result
jobject
Note: In PHP 4 get_class() returns a user defined class name in lowercase, but in PHP 5 it will return the class name in it’s original notation.
In PHP 5 the above example would produce:
Result
JObject