PHP Arrays
What functions count elements in an array?
1. count
2. Sizeof
3. Array_Count
4. Count_array

Option 1 and 4
Option 1 and 2
Option 2 and 4
Option 3 and 4

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$a1 = array("red", "green");
$a2 = array("blue", "yellow");
print_r(array_merge($a1, $a2));

Array ( [0] => red [1] => green [2] => blue [3] => yellow )
Array ( [0] => blue [1] => yellow [2] => red [3] => green )
Array ( [0] => blue [1] => yellow )
Array ( [0] => red [1] => 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");
$result = array_intersect($a1, $a2);
print_r($result);

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

ANSWER DOWNLOAD EXAMIANS APP