PHP Arrays What will the following script output?$array = array (1, 2, 3, 5, 8, 13, 21, 34, 55);$sum = 0;for ($i = 0; $i < 5; $i++) {$sum += $array[$array[$i]];}echo $sum; 78 19 NULL 5 78 19 NULL 5 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$arr = array ("picture1.JPG", "picture2.jpg", "Picture10.jpg", "picture20.jpg");sort($arr);print_r($arr); Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture20.jpg [3] => picture2.jpg ) Array ( [0] => picture1.JPG [1] => picture2.jpg [2] => Picture10.jpg [3] => picture20.jpg ) Array ( [0] => picture1.JPG [1] => Picture10.jpg [2] => picture2.jpg [3] => picture20.jpg ) Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture2.jpg [3] => picture20.jpg ) Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture20.jpg [3] => picture2.jpg ) Array ( [0] => picture1.JPG [1] => picture2.jpg [2] => Picture10.jpg [3] => picture20.jpg ) Array ( [0] => picture1.JPG [1] => Picture10.jpg [2] => picture2.jpg [3] => picture20.jpg ) Array ( [0] => Picture10.jpg [1] => picture1.JPG [2] => picture2.jpg [3] => picture20.jpg ) ANSWER DOWNLOAD EXAMIANS APP
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); red none of the mentioned green blue red none of the mentioned green blue ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); True => 'a', 1 => 'b' 1 => 'b' None It will output NULL True => 'a', 1 => 'b' 1 => 'b' None It will output NULL ANSWER DOWNLOAD EXAMIANS APP
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] . "."; Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Bob) Sam is the brother of Bob and Jack Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Bob) Sam is the brother of Bob and Jack ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function can be used to move the pointer to the previous array position? before() previous() prev() last() before() previous() prev() last() ANSWER DOWNLOAD EXAMIANS APP