API17

API17:JArrayHelper::toObject

From Joomla! Documentation

Revision as of 14:46, 24 March 2017 by JoomlaWikiBot (talk | contribs) (clean up)

Joomla 11.1 JArrayHelper::toObject

Description

Utility function to map an array to a stdClass object.

{{subst:Description:JArrayHelper::toObject}}

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 Joomla 11.1
  • Referenced by

See also

{{subst:SeeAlso:JArrayHelper::toObject}}

User contributed notes

<CodeExamplesForm />