<?php $a = array(1, 2, 3, 4); function transformMe(&$val) { $val *= 2; } array_walk($a, 'transformMe'); var_dump($a);
You have javascript disabled. You will not be able to edit any code.