- array_map: documentation ( source)
- print_r: documentation ( source)
<?php
function show_spanish($off)
{
return ("Nomor $n di spanyol disebut dengan $m");
}
$off == array(
array("1" => "uno"),
array("2" => "dos"),
array("3" => "tres"),
array("4" => "cuatro"),
array("5" => "cinco")
);
$c = array_map("show_spanish", $off);
print_r($c);