MCQs > IT & Programming > PHP 5 > Output in following codes? 'green', 'red', 'blue'); $array2 = array('b' => 'green', 'yellow', 'red'); $result = array_intersect($array1, $array2); print_r($result); ?>

PHP 5 MCQs

What is the output in following codes? "green", "red", "blue"); $array2 = array("b" => "green", "yellow", "red"); $result = array_intersect($array1, $array2); print_r($result); ?>

Answer

Correct Answer: Array ( [a] => green [0] => red )

Explanation:

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