Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Change all letters of the array values to uppercase
SUBMITTED BY:
henry1874w
DATE:
June 23, 2017, 9:43 p.m.
FORMAT:
Text only
SIZE:
167 Bytes
Raw
Download
Tweet
HITS:
320
Go to comments
Report
<?php
function myfunction($v)
{
$v=strtoupper($v);
return $v;
}
$a=array("Animal" => "horse", "Type" => "mammal");
print_r(array_map("myfunction",$a));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus