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