JArrayHelper::toObject
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JArrayHelper::toObject[edit]
Description[edit]
Utility function to map an array to a stdClass object.
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[edit]
- JArrayHelper::toObject source code on BitBucket
- Class JArrayHelper
- Subpackage Utilities
- Other versions of JArrayHelper::toObject
User contributed notes[edit]
Code Examples[edit]