<?php $func = function($value) { return $value * 2; }; print_r(array_map($func, range(1, 5)));
You have javascript disabled. You will not be able to edit any code.