Array related methods.
More...
Array related methods.
Engine / Tool Library
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Version
- 1.2
- Date
- Creation: Jan 2010
-
Modification: Oct 2019
- Copyright
- 2010 - 2019 CaMykS Team
- Note
- This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
◆ array_dropValue()
array_dropValue |
( |
|
$array = array() , |
|
|
|
$value = null , |
|
|
|
$keepKeys = true |
|
) |
| |
Drop given value from array.
- Parameters
-
array | $array | |
mixed | $value | |
boolean | $keepKeys | |
- Returns
- string
◆ array_recursiveMerge()
array_recursiveMerge |
( |
|
$array1 = array() , |
|
|
|
$array2 = array() |
|
) |
| |
Merge arrays.
- Parameters
-
array | $array1 | |
array | $array2 | |
- Returns
- array
◆ array_checkNumeric()
array_checkNumeric |
( |
|
$array = array() | ) |
|
Check if all elements are numerics or numeric strings.
- Parameters
-
- Returns
- boolean result
◆ array_checkInteger()
array_checkInteger |
( |
|
$array = array() | ) |
|
Check if all elements are integers (strict).
- Parameters
-
- Returns
- boolean result
◆ array_checkDataType()
array_checkDataType |
( |
|
$array = array() , |
|
|
|
$type = '' |
|
) |
| |
Check if all elements are the same and given type.
- Parameters
-
- Returns
- boolean result
◆ array_abs()
array_abs |
( |
|
$array = array() | ) |
|
Return array with all abs values.
- Parameters
-
- Returns
- array
◆ array_applySameValue()
array_applySameValue |
( |
|
$array, |
|
|
|
$value = null |
|
) |
| |
Apply the same value on every key then return it.
- Parameters
-
- Returns
- array
◆ array_isAssociative()
array_isAssociative |
( |
|
$array | ) |
|
Check if array is associative.
- Parameters
-
- Returns
- boolean result
◆ array_isSequential()
array_isSequential |
( |
|
$array | ) |
|
Check if array is sequential.
- Parameters
-
- Returns
- boolean result