english/libraries/joomla/utilities/arrayhelper.php
/**
	 * Utility function to map an object to an array
	 *
	 * @param   object   The source object
	 * @param   boolean  True to recurve through multi-level objects
	 * @param   string   An optional regular expression to match on field names
	 *
	 * @return  array    The array mapped from the given object
	 * @since   11.1
	 */
Utility function to map an object to an array
@param   object   The source object
@param   boolean  True to recurve through multi-level objects
@param   string   An optional regular expression to match on field names

@return  array    The array mapped from the given object
@since   11.1
Utility function to map an object to an array @param object The source object @param boolean True to recurve through multi - level objects @param string An optional regular expression to match on field names @return array The array mapped from the given object @since 11 . 1
public static function fromObject($p_obj, $recurse = true, $regex = null)
	{
		if (is_object($p_obj)) {
			return self::_fromObject($p_obj, $recurse, $regex);
		}
		else {
			return null;
		}
	}
public static function fromObject ( $ p_obj , $ recurse = true , $ regex = null ) { if ( is_object ( $ p_obj ) ) { return self :: _fromObject ( $ p_obj , $ recurse , $ regex ) ; } else { return null ; } }
Utility function to map an object to an array
 @param   object   The source object
 @param   boolean  True to recurve through multi-level objects
 @param   string   An optional regular expression to match on field names
Utility function to map an object to an array @param object The source object @param boolean True to recurve through multi - level objects @param string An optional regular expression to match on field names