====== get ====== {#JAPI Joomla.Framework Base JObject::get #} This function gets the value of an object's property. ===== Syntax ===== mixed get ( **$property**, **$default** ) | **$property** | string | is a string containing the name of the property to get. | | **$default** | mixed | is the default value to return in the event that the specified property is not set. This parameter is optional and if omitted defaults to null. | See also: * [[JObject-set|JObject::set]] * [[JObject-setProperties|JObject::setProperties]] * [[JObject-getProperties|JObject::getProperties]] ===== Examples ===== This example uses the JBrowser class, which is a subclass of JObject. global $mainframe; $browser = &$mainframe->getBrowser(); print_r( $browser->get( '_images' ) ); might produce: Array ( [0] => jpeg [1] => gif [2] => png [3] => pjpeg [4] => x-png [5] => bmp ) ---- ~~DISCUSSION~~