references:joomla.framework:base:jobject-tostringtoString
Object-to-string conversion. This function is empty and can be redefined by subclasses. Syntaxstring toString () ExamplesIn 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 Discussion |


