Ver original$test = array(1, 2, 3, 4, 5, 6);array_walk($test, function(&$item, $key) { $item = $item * 2;}); var_dump($test);