Ds\Map::apply

Ds\Map::apply

(PECL ds >= 1.0.0)

Ds\Map::applyUpdates all values by applying a callback function to each value.

Description

public void Ds\Map::apply ( callable $callback )

Updates all values by applying a callback function to each value in the map.

Parameters

callback
mixed callback ( mixed $key , mixed $value )

A 登录查看完整内容