JArrayHelper::getColumn: Difference between revisions
From Joomla! Documentation
Layout updates |
Updated to r1448:247ba8d88526 |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JArrayHelper::getColumn|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JArrayHelper::getColumn|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function getColumn ( | ||
&$array | |||
$index | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 29: | Line 29: | ||
|string | |string | ||
| | | | ||
|The index of the column or name of object property | |The index of the column or name of object property | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' array Column of values from the source array | |||
array Column of values from the source array | * '''Defined''' on line 172 of libraries/joomla/utilities/arrayhelper.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/utilities/arrayhelper.php | |||
* | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JArrayHelper::getColumn source code''' on [[jplatform:utilities/arrayhelper.php#cl-164|BitBucket]] | |||
* {{JVer|11.1}} Class [[JArrayHelper/11.1|JArrayHelper]] | |||
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | |||
* [[JArrayHelper::getColumn|Other versions of JArrayHelper::getColumn]] | |||
{{SeeAlso:JArrayHelper::getColumn}} | |||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::getColumn|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JArrayHelper::getColumn|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
===User contributed notes=== | |||
=== | |||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 53: | Line 52: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::getColumn]]</noinclude> | <noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::getColumn]]</noinclude> | ||
Revision as of 01:10, 28 April 2011
JArrayHelper::getColumn
Description
Extracts a column from an array of arrays or objects.
Template:Description:JArrayHelper::getColumn [Edit Descripton]
public static function getColumn (
&$array
$index
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| &$array | array | $array The source array | |
| $index | string | The index of the column or name of object property |
- Returns array Column of values from the source array
- Defined on line 172 of libraries/joomla/utilities/arrayhelper.php
- Since

See also
JArrayHelper::getColumn source code on BitBucket
Class JArrayHelper
Subpackage Utilities- Other versions of JArrayHelper::getColumn
Template:SeeAlso:JArrayHelper::getColumn [Edit See Also]
User contributed notes
<CodeExamplesForm />