Actions

API17

Difference between revisions of "JArrayHelper::getColumn"

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>
===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 19:10, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JArrayHelper::getColumn

Description

Extracts a column from an array of arrays or objects.

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

SeeAlso:JArrayHelper::getColumn [Edit See Also]

User contributed notes

<CodeExamplesForm />