Q:

What will be the output of the following PHP code?

0

What will be the output of the following PHP code?

<?php
$fname = array("Peter", "Ben", "Joe");
$age = array("35", "37", "43");
$c = array_combine($fname, $age);
print_r($c);
?>

  1. Array ( Peter Ben Joe )
  2. Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 )
  3. Array ( 35 37 43 )
  4. Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” )

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (b).Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 )

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now