"red", "b" => "green", "c" => "blue", "d" => "yellow");$result = array_flip($a1)"> "red", "b""> What will be the output of the following PHP code ?$a1 = array("a" => "red", "b" "red", "b""> "red", "b" => "green", "c" => "blue", "d" => "yellow");$result = array_flip($a1)"> "red", "b"" /> "red", "b" => "green", "c" => "blue", "d" => "yellow");$result = array_flip($a1)" /> "red", "b" => "green", "c" => "blue", "d" => "yellow");$result = array_flip($a1)" />
Sail E0 Webinar
Question
What will be the output of the following PHP code ?$a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow");$result = array_flip($a1);print_r($result);
Options:
A .  Array ( [red] => a [green] => b [blue] => c [yellow] => d )
B .  Array ( [a] => a [b] => b [c] => c [d] => d )
C .  Array ( [a] => red [b] => green [c] => blue [d] => yellow )
D .  Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow )
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers