API15

JArrayHelper: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
No edit summary
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
{{subst:Description:JArrayHelper}}
<nowiki>[</nowiki>[[Description:JArrayHelper|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JArrayHelper}}


===Defined in===
===Defined in===
Line 37: Line 34:
<source lang="php">jimport( 'joomla.utilities.arrayhelper' );</source>
<source lang="php">jimport( 'joomla.utilities.arrayhelper' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JArrayHelper}}
</span>
{{SeeAlso:JArrayHelper}}


===Examples===
===Examples===

Revision as of 13:12, 24 March 2017

{{subst:Description:JArrayHelper}}

Defined in

libraries/joomla/utilities/arrayhelper.php

Methods

Method name Description
toInteger Function to convert array to integer values
toObject Utility function to map an array to a stdClass object.
fromObject Utility function to map an object to an array
getColumn Extracts a column from an array of arrays or objects
getValue Utility function to return a value from a named array or a specified default
sortObjects Utility function to sort an array of objects on a given field
toString

Importing

jimport( 'joomla.utilities.arrayhelper' );


{{subst:SeeAlso:JArrayHelper}}

Examples

<CodeExamplesForm />