代码示例:
$r = array(1,2,3,4,5);
$s = array_map(function($r){return pi()*$r*$r;}, $r);
print_r($s);
exit;