API17

JArrayHelper::getColumn: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Layout updates
Doxiki2 (talk | contribs)
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>
===Since===
{{JVer|11.1 }}
===Synopsis===
<source lang="php">
<source lang="php">
public static JArrayHelper::getColumn (&$array, $index)
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===
* '''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
===Defined in===
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/arrayhelper.php (line 172)
* see source code in [[jplatform:utilities/arrayhelper.php#cl-172|BitBucket]]
===Referenced by===
===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>
* [[JArrayHelper/11.1|JArrayHelper]]
===User contributed notes===
* [[JArrayHelper::getColumn|Other versions of this method]]
{{SeeAlso:JArrayHelper::getColumn}}
===Examples===
<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

Joomla 11.1 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 Joomla 11.1

See also

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

User contributed notes

<CodeExamplesForm />