API17

API17:JArrayHelper::fromObject

From Joomla! Documentation

Revision as of 00:44, 12 May 2013 by JoomlaWikiBot (talk | contribs) (See also: moving preparation)

Joomla 11.1 JArrayHelper::fromObject

Description

Utility function to map an object to an array.

Template:Description:JArrayHelper::fromObject [Edit Descripton]

public static function fromObject (
        $p_obj
        $recurse=true
        $regex=null
)
Parameter Type Default Description
$p_obj object The source object
$recurse boolean true True to recurve through multi-level objects
$regex string null An optional regular expression to match on field names
  • Returns array The array mapped from the given object
  • Defined on line 105 of libraries/joomla/utilities/arrayhelper.php
  • Since Joomla 11.1

See also

Template:SeeAlso:JArrayHelper::fromObject [Edit See Also]

User contributed notes

<CodeExamplesForm />