array_combine function - how to creates an array by combining two arrays in php
array_combinefunction.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>array_combine function - how to creates an array by combining two arrays in php</title>
</head>
<body>
<h2 style="color:Navy; font-style:italic">php example: using array_combine function in php</h2>
<hr width="525" align="left" color="DodgerBlue" />
<br />
<?php
$KeysArray=array("FirstName","LastName","Age");
$ValuesArray=array("Jenny","Jones","24");
echo "<div style='font-size:large;color:OrangeRed'>";
print_r(array_combine($KeysArray,$ValuesArray));
echo "</div>";
?>
</body>
</html>