PHP Programing language

Write A Program to combine two arrays in to one array
Previous Home Next
<head>
<title>Combining Arrays</title>
</head>
<body>
<?php

$a = array("ram","rahim","raja","rahul");
$s = array("India","Pakistan","Nepal","America");
$d = array_combine($a,$s);
print_r($d);

?>
  
<body>
</body>
</html>

 

Output:

Previous Home Next