获取您 自己 的 PHP 服务器 Result Size: 625 x 664
x
 
<!DOCTYPE html>
<html>
<body>
<?php
function myfunction($v) 
{
$v=strtoupper($v);
  return $v;
}
$a=array("Animal" => "horse", "Type" => "mammal");
print_r(array_map("myfunction",$a));
?>
</body>
</html>