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

none of the mentioned
green
red
blue

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
There are three different kind of arrays:

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

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$fruits = array ("apple", "mango", "peach", "pear", "orange");
$subset = array_slice ($fruits, 2);
print_r ($subset);

Array ( [0] => peach [1] => pear [2] => orange )
Array ( [0] => apple [1] => mango [2] => peach )
Array ( [0] => apple [1] => mango )
Array ( [0] => peach )

ANSWER DOWNLOAD EXAMIANS APP