API17:JArrayHelper::toObject
From Joomla! Documentation
JArrayHelper::toObject
Description
Utility function to map an array to a stdClass object.
Template:Description:JArrayHelper::toObject [Edit Descripton]
Since
Synopsis
public static JArrayHelper::toObject (&$array, $class= 'stdClass')
| Parameter | Type | Default | Description |
|---|---|---|---|
| &$array | array | $array The array to map. | |
| $class | string | 'stdClass' | $calss Name of the class to create |
Returns
object The object mapped from the given array
Defined in
libraries/joomla/utilities/arrayhelper.php (line 58)
- see source code in BitBucket
Referenced by
See also
Template:SeeAlso:JArrayHelper::toObject
Examples
<CodeExamplesForm />