MCQs > IT & Programming > PHP > What is the output? '; $array1 = array( '1'=>'a', '2'=>'b', '3'=>'c' ); $array = array_flip($array1); print_r($array); echo ''; ?>

PHP MCQs

What is the output of the following code? <?php echo "<pre>"; $array1 = array( "1"=>"a", "2"=>"b", "3"=>"c" ); $array = array_flip($array1); print_r($array); echo "</pre>"; ?>

Answer

Correct Answer: Array ( [a] => 1 [b] => 2 [c] => 3 )

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