Result Size:
625 x 571
tryphp_func_array_map.php:
<!DOCTYPE html> <html> <body> <?php function myfunction($num) { return($num*$num); } $a=array(1,2,3,4,5); print_r(array_map("myfunction",$a)); ?> </body> </html>
Array ( [0] => 1 [1] => 4 [2] => 9 [3] => 16 [4] => 25 )