API17

JArrayHelper::fromObject: Difference between revisions

From Joomla! Documentation

m JoomlaWikiBot moved page JArrayHelper::fromObject/11.1 to API17:JArrayHelper::fromObject without leaving a redirect: Robot: Moved page
m User contributed notes: moving preparation
Line 61: Line 61:
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::fromObject]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 15:03, 11 May 2013

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 />