JUtility::array unshift ref: Difference between revisions
From Joomla! Documentation
m →See also: moving preparation |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
Prepend a reference to an element to the beginning of an array. | Prepend a reference to an element to the beginning of an array. | ||
<source lang="php"> | <source lang="php"> | ||
public function array_unshift_ref ( | public function array_unshift_ref ( | ||
| Line 39: | Line 37: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]] | ||
* [[API17:JUtility::array_unshift_ref|Other versions of JUtility::array_unshift_ref]] | * [[API17:JUtility::array_unshift_ref|Other versions of JUtility::array_unshift_ref]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JUtility::array_unshift_ref | category=JUtility::array_unshift_ref | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 03:56, 25 March 2017
JUtility::array_unshift_ref
Description
Prepend a reference to an element to the beginning of an array.
public function array_unshift_ref (
&$array
&$value
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| &$array | |||
| &$value |
- Returns
- Defined on line 188 of libraries/joomla/utilities/utility.php
See also
JUtility::array_unshift_ref source code on BitBucket
Class JUtility
Subpackage Utilities- Other versions of JUtility::array_unshift_ref
User contributed notes
Code Examples