PHP Source:
<
!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
>
Result:
Privacy Policy