Which in-built function will add a value to the end of an array?
Answer: Option D
Solution(By Examveda Team)array_push adds a value to the end of an array, returning the total count of elementsin the array after the new value has been added.
A. Yes, because the interpreter must always create a copy of the array before passing it to the function.
B. Yes, but only if the function modifies the contents of the array.
C. Yes, but only if the array is large.
D. Yes, because PHP must monitor the execution of the function to determine if changes are made to the array.
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);
A. Array ( [d] => yellow )
B. Array ( [i] => orange )
C. Array ( [h] => orange )
D. Array ( [d] => yellow [h] => orange )
A. Array (  => red  => green )
B. Array (  => green  => blue )
C. Array (  => red  => blue )
D. Array (  => blue  => blue )
A. Sam is the brother of Bob and Bob) $brother
B. Sam is the brother of Bob and Bob)