<?php $test = ['a', 'b', 'c']; array_walk($test, function (&$value, $key) { $value = 1; }); var_dump($test);
You have javascript disabled. You will not be able to edit any code.