JArrayHelper: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/utilities/arrayhelper.php | libraries/joomla/utilities/arrayhelper.php | ||
| Line 35: | Line 33: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JArrayHelper | category=JArrayHelper | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:19, 25 March 2017
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. |
| toString | |
| 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 |
Importing
jimport( 'joomla.utilities.arrayhelper' );
Examples
Code Examples