|
static | runFunctionOnArrayValues (&$aArray, $mCallback) |
|
static | trimStringsInArray (&$aArray) |
|
static | arrayIsAssociative (&$aArray) |
|
static | setEmptyArrayValuesToNull (&$aArray) |
|
static | inArray ($mScalar, $aArray, $bStrict=true, $sKeyMethod=null) |
|
static | assocUnshift (&$aArray) |
|
static | assocPeek (&$aArray) |
|
static | assocKeyPeek (&$aArray) |
|
static | arrayWithValuesAsKeys ($aArray) |
|
static ArrayUtil::assocUnshift |
( |
& |
$aArray | ) |
|
|
static |
Prepends an element/multiple elements to the beginning of the associative array Usage: assocUnshift($array, $key1, value1, key2, value2, …)
If multiple elements are passed, they end up being in the order in which they are given Example: assocUnshift($array, 'zero', 0, 'one', 1) will result in $array being array('zero' => 0, 'one' => 1, …)
The documentation for this class was generated from the following file:
- cms-full/base/lib/classes/ArrayUtil.php