API17:JArrayHelper::toObject
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JArrayHelper::toObject
Description
Utility function to map an array to a stdClass object.
Description:JArrayHelper::toObject [Edit Descripton]
public static function toObject ( &$array $class= 'stdClass' )
| Parameter | Type | Default | Description |
|---|---|---|---|
| &$array | array | $array The array to map. | |
| $class | string | 'stdClass' | Name of the class to create |
- Returns object The object mapped from the given array
- Defined on line 58 of libraries/joomla/utilities/arrayhelper.php
- Since
- Referenced by
See also
-
JArrayHelper::toObject source code on BitBucket
-
Class JArrayHelper
-
Subpackage Utilities
- Other versions of JArrayHelper::toObject
SeeAlso:JArrayHelper::toObject [Edit See Also]
User contributed notes
<CodeExamplesForm />
