public static function arrayMap(callable $callback, array $array)
    {
        foreach ($array as $key => $value) {
            $array[$key] = \call_user_func($callback, $value, $key);
        }

        return $array;
    }
public static function arrayMap(callable $callback, array $array)
    {
        foreach ($array as $key => $value) {
            $array[$key] = \call_user_func($callback, $value, $key);
        }

        return $array;
    }
public static function arrayMap ( callable $ callback , array $ array ) { foreach ( $ array as $ key => $ value ) { $ array [ $ key ] = \ call_user_func ( $ callback , $ value , $ key ) ; } return $ array ; }
- array keys are available in callback
- array keys have not been changed
- array keys are available in callback - array keys have not been changed