public static function map(array $arr, \Closure $callback){
		
		$ret = array();
		
		foreach($arr as $k => $v){
			$ret[$k] = $callback($v, $k);
		}
		
		return $ret;
		
	}
public static function map(array $arr, \Closure $callback){
		
		$ret = array();
		
		foreach($arr as $k => $v){
			$ret[$k] = $callback($v, $k);
		}
		
		return $ret;
		
	}
public static function map ( array $ arr , \ Closure $ callback ) { $ ret = array ( ) ; foreach ( $ arr as $ k => $ v ) { $ ret [ $ k ] = $ callback ( $ v , $ k ) ; } return $ ret ; }
Traverses an array and generates a new array with the returned values
which a returned from the callback function

@param array $arr
@param \Closure $callback
@return array
Traverses an array and generates a new array with the returned values which a returned from the callback function