PHP Arrays
What will be the output of the following PHP code?
$names = array("Sam", "Bob", "Jack");
echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . ".";

Sam is the brother of Bob and Bob)
Error
Sam is the brother of Bob and Jack
Sam is the brother of Jack and Bob)

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 [e] => red [f] => green [g] => blue )
Array ( [a] => red [b] => green [c] => blue [d] => yellow )
Array ( [e] => red [f] => green [g] => blue )
Array ( [a] => red [b] => green [c] => blue )

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
There are three different kind of arrays:

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

ANSWER DOWNLOAD EXAMIANS APP