Result Size: 625 x 571
x
 
<!DOCTYPE html>
<html>
<body>
<?php
function myfunction($v1,$v2)
{
if ($v1===$v2)
  {
  return "same";
  }
return "different";
}
$a1=array("Horse","Dog","Cat");
$a2=array("Cow","Dog","Rat");
print_r(array_map("myfunction",$a1,$a2));
?>
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_array_map3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:50:52 GMT -->
</html>
×

Report a Problem: