CaMykS  1.0-20231201
Functions
array.php.inc File Reference

Array related methods. More...

Functions

 array_dropValue ($array=array(), $value=null, $keepKeys=true)
 
 array_recursiveMerge ($array1=array(), $array2=array())
 
 array_checkNumeric ($array=array())
 
 array_checkInteger ($array=array())
 
 array_checkDataType ($array=array(), $type='')
 
 array_abs ($array=array())
 
 array_applySameValue ($array, $value=null)
 
 array_isAssociative ($array)
 
 array_isSequential ($array)
 

Detailed Description

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
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Function Documentation

◆ 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
array$array
Returns
boolean result

◆ array_checkInteger()

array_checkInteger (   $array = array())

Check if all elements are integers (strict).

Parameters
array$array
Returns
boolean result

◆ array_checkDataType()

array_checkDataType (   $array = array(),
  $type = '' 
)

Check if all elements are the same and given type.

Parameters
array$array
string$type
Returns
boolean result

◆ array_abs()

array_abs (   $array = array())

Return array with all abs values.

Parameters
array$array
Returns
array

◆ array_applySameValue()

array_applySameValue (   $array,
  $value = null 
)

Apply the same value on every key then return it.

Parameters
array$array
mixed$value
Returns
array

◆ array_isAssociative()

array_isAssociative (   $array)

Check if array is associative.

Parameters
array$array
Returns
boolean result

◆ array_isSequential()

array_isSequential (   $array)

Check if array is sequential.

Parameters
array$array
Returns
boolean result