PHP Arrays
What will be the output of the following PHP code?
$a = array("a"=>"red", "b"=>"green", "c"=>"blue");
echo array_shift($a);
print_r ($a);

red
none of the mentioned
blue
green

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");
$a2 = array("e" => "red", "f" => "green", "g" => "blue", "h" => "orange");
$a3 = array("i" => "orange");
$a4 = array_combine($a2, $a3);
$result = array_diff($a4, $a2);
print_r($result);

Array ( [d] => yellow )
Array ( [h] => orange )
Array ( [d] => yellow [h] => orange )
Array ( [i] => orange )

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
There are three different kind of arrays:

Const array, Associative array, Multidimensional array
Numeric array, Associative array, Dimensional array
Numeric array, String array, Multidimensional array
Numeric array, Associative array, Multidimensional array

ANSWER DOWNLOAD EXAMIANS APP