PHP Class Toplan\PhpSms\Util

Afficher le fichier Open project: toplan/phpsms Class Usage Examples

Méthodes publiques

Méthode Description
operateArray ( array &$arr, mixed $key, mixed $value = null, mixed $getDefault = null, Closure $setAction = null, boolean $override = false, Closure | null $beforeOverride = null, boolean $isSet = false ) : mixed 对数组进行赋值/取值操作
pullFromArrayByKey ( array &$options, integer | string $key ) : mixed Pull the value from the specified array by key.

Method Details

operateArray() public static méthode

对数组进行赋值/取值操作
public static operateArray ( array &$arr, mixed $key, mixed $value = null, mixed $getDefault = null, Closure $setAction = null, boolean $override = false, Closure | null $beforeOverride = null, boolean $isSet = false ) : mixed
$arr array
$key mixed
$value mixed
$getDefault mixed
$setAction Closure
$override boolean
$beforeOverride Closure | null
$isSet boolean
Résultat mixed

pullFromArrayByKey() public static méthode

Pull the value from the specified array by key.
public static pullFromArrayByKey ( array &$options, integer | string $key ) : mixed
$options array
$key integer | string
Résultat mixed