-
What will be the output of the following PHP code?
<?php
$Employee = array("Ajit", "Rahul", "Ats");
$id = array("001", "002", "003");
$pro = array_combine($id, $Employee);
print_r($pro);
?>
-
-
Array
(
[001] => Ajit
[002] => Rahul
[003] => Ats
) - Error
- Nothing
-
Array
(
[001]
[002]
[003]
) - None of these
-
Correct Option: A
Here “keys” array is $id and “values” array is $Employee .