<?php $aaa = array(1,2,3,4,5); $mapp = array_map(function($var) { return $var; }, $aaa); print_r($mapp);?>
Standard input is empty
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!