PHP Arrays
What will be the output of the following PHP code?
$fruits = array ("apple", "orange", "banana");
echo (next($fruits));
echo (next($fruits));

orangeorange
orangebanana
appleapple
appleorange

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
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);

Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow )
Array ( [a] => a [b] => b [c] => c [d] => d )
Array ( [red] => a [green] => b [blue] => c [yellow] => d )
Array ( [a] => red [b] => green [c] => blue [d] => yellow )

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code ?
$age = array("Harry" => "21", "Ron" => "23","Malfoy" => "21");
array_change_key_case($age, CASE_UPPER);
array_pop($age);
print_r($age);

Array ( [HARRY] => 21 [RON] => 23 )
Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 )
Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 )
Array ( [Harry] => 21 [Ron] => 23 )

ANSWER DOWNLOAD EXAMIANS APP