public static function map(array $data, $path, $function)
    {
        $values = (array)self::extract($data, $path);
        return array_map($function, $values);
    }
public static function map(array $data, $path, $function)
    {
        $values = (array)self::extract($data, $path);
        return array_map($function, $values);
    }
public static function map ( array $ data , $ path , $ function ) { $ values = ( array ) self :: extract ( $ data , $ path ) ; return array_map ( $ function , $ values ) ; }
Map a callback across all elements in a set.
Can be provided a path to only modify slices of the set.

@param  array    $data     The data to map over, and extract data out of.
@param  string   $path     The path to extract for mapping over.
@param  callable $function The function to call on each extracted value.
@return array An array of the modified values.
@link   http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::map
Map a callback across all elements in a set . Can be provided a path to only modify slices of the set .