MCQs > IT & Programming > PHP 5 > $x = array('x' => 'Adam', 'y' => 'Binca'); $y = array('x' => 'Avin', 'y' => 'Beth', 'z' => 'Chris'); $z = $y + $x; $x += $y; var_dump($x); ?>

PHP 5 MCQs

What will be the output of the following PHP code.

$x = array("x" => "Adam", "y" => "Binca");

$y = array("x" => "Avin", "y" => "Beth", "z" => "Chris");

$z = $y + $x;

$x += $y;

var_dump($x);

?>


Answer

Correct Answer:

array(3) {

[string(4) "Avin"

["y"]=>

string(5) "Binca"

["z"]=>

string(5) "Chris"

}

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it