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] . ".".$brother;

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

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] => peach )
Array ( [0] => apple [1] => mango [2] => peach )
Array ( [0] => apple [1] => mango )

ANSWER DOWNLOAD EXAMIANS APP