src/Component/Json.php
/**
     * Applies a function recursively to every member of a countable.
     *
     * @param callable $function The function to be called on each member, accepts three arguments:
     * 1. The element's value, might be gotten by-reference.
     * 2. The element's key.
     * @param ?string|int $index
     * @return self
     */
Applies a function recursively to every member of a countable.
@param callable $function The function to be called on each member, accepts three arguments:
1. The element's value, might be gotten by-reference.
2. The element's key.
@param ?string|int $index
@return self
Applies a function recursively to every member of a countable . @param callable $function The function to be called on each member accepts three arguments : 1 . The element ' s value might be gotten by - reference . 2 . The element ' s key . @param ?string|int $index @return self
public function forEachRecursive(callable $function, $index = null): self
    {
        $this->do(function (array &$array) use ($function) {
            $this->walkRecursive($array, $function);
        }, $index, true);
        return $this;
    }
public function forEachRecursive ( callable $ function , $ index = null ) : self { $ this -> do ( function ( array & $ array ) use ( $ function ) { $ this -> walkRecursive ( $ array , $ function ) ; } , $ index , true ) ; return $ this ; }
Applies a function recursively to every member of a countable.
Applies a function recursively to every member of a countable .