array_combine in php example

Program:

array_combine.php

<?php
$arr_one=array(1,2,3);
$arr_two=array(java,html,php);
$array_combined=array_combine($arr_one,$arr_two);
print_r($array_combined);
?>

 Output:

Thanks for reading this post…………!!!

Leave a Reply