ExamVeda
Login
Home
This question belongs to PHP Arrays
Arrays
?

What will be the output of the following PHP code?
<?php
$fname = array("Peter", "Ben", "Joe");
$age = array("35", "37", "43");
$c = array_combine($age, $fname);
print_r($c);
?>

Answer & Solution
Correct Answer: Option D
Here “keys” array is $age and “values” array is $fname.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.