src/ORM/ArrayLib.php
public static function array_map_recursive($f, $array)
    {
        $applyOrRecurse = function ($v) use ($f) {
            return is_array($v) ? ArrayLib::array_map_recursive($f, $v) : call_user_func($f, $v);
        };

        return array_map($applyOrRecurse, $array);
    }
public static function array_map_recursive($f, $array)
    {
        $applyOrRecurse = function ($v) use ($f) {
            return is_array($v) ? ArrayLib::array_map_recursive($f, $v) : call_user_func($f, $v);
        };

        return array_map($applyOrRecurse, $array);
    }
public static function array_map_recursive ( $ f , $ array ) { $ applyOrRecurse = function ( $ v ) use ( $ f ) { return is_array ( $ v ) ? ArrayLib :: array_map_recursive ( $ f , $ v ) : call_user_func ( $ f , $ v ) ; } ; return array_map ( $ applyOrRecurse , $ array ) ; }
Similar to array_map, but recurses when arrays are encountered.

Actually only one array argument is supported.

@param $f callback to apply
@param $array array
@return array
Similar to array_map but recurses when arrays are encountered .