PHP Programing language

Write a program to create an array by using one array for keys and another for its values
Previous Home Next
<html>
<head>
<title>create an array to another array</title>
</head>
<body>
<?php
$a;
$s;
$stateMap;

   $a = array("Ali","Akhil","Akash","Arun");
   $s = array("Alabama","Alaska","Arizona","Arkansas");
   $stateMap = array_combine(  $a , $s);
   print_r($stateMap);
?>
</body>
</html>

 

Output:

Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: