-
What will be the output of the following PHP code?
<?php
$EmpName = array("Ajit Kumar Gupta", "Ats Yogi", "Aju Jayaraj");
$Salary = array("35000", "37000", "43000");
$Result = array_combine($EmpName, $Salary);
print_r($Result);
?>
-
-
Array
(
[Aju Jayaraj] => 43000
) -
Array
(
[Ajit Kumar Gupta] => 35000
[Ats Yogi] => 37000
) -
Array
(
[Ajit Kumar Gupta]
[Ats Yogi]
[Aju Jayaraj]
) -
Array
(
[Ajit Kumar Gupta] => 35000
[Ats Yogi] => 37000
[Aju Jayaraj] => 43000
) - None of these
-
Correct Option: D
The array_combine() function creates an array by using the elements from one “keys” array and one “values” array