// if the array elements are different then it will give error.
xxxxxxxxxx
<?php
$index = array("C","C++","Java", "Perl", "PHP");
$name = array("Dennis M. Ritchie","Bjarne Stroustrup","James Gosling", "Larry Wall", "Rasmus Lerdorf");
$result = array_combine($index, $name);
print_r($result);
// if parameters are different then it will give error.
?>