Skip to content

RFE: ArrayHelper::remove not support array key #3

@dicrtarasov

Description

@dicrtarasov

We have very usefull methods in ArrayHelper:

/** @param string|\Closure|array $key key name of the array element, an array of keys or property name of the object */
public static function getValue($array, $key, $default = null);

/** @param string|array|null $path the path of where do you want to write a value to `$array` */
public static function setValue(&$array, $path, $value);

The key, path arguments support array type.
But in "remove" method, support of array type of key is missing, which is not fully.

/** @param string $key key name of the array element */
public static function remove(&$array, $key, $default = null);

Please, rewrite remove method to support array type of key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions