MCQs > IT & Programming > PHP > What's the output? $array1 = array('a' => 'green', 'b' => 'brown', 'c' => 'blue', 'red'); $array2 = array('a' => 'green', 'yellow', 'red'); $result = array_diff_assoc($array1, $array2); print_r($result);

PHP MCQs

What the result of the following code: $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "green", "yellow", "red"); $result = array_diff_assoc($array1, $array2); print_r($result);

Answer

Correct Answer: Array ( [b] => brown [c] => blue [0] => red )

Explanation:

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

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it