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); none of the mentioned green red blue none of the mentioned green red blue ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays There are three different kind of arrays: Numeric array, Associative array, Dimensional array Numeric array, String array, Multidimensional array Const array, Associative array, Multidimensional array Numeric array, Associative array, Multidimensional array Numeric array, Associative array, Dimensional array Numeric array, String array, Multidimensional array Const array, Associative array, Multidimensional array Numeric array, Associative array, Multidimensional array ANSWER DOWNLOAD EXAMIANS APP
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; 5 78 NULL 19 5 78 NULL 19 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] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => peach ) Array ( [0] => peach [1] => pear [2] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => peach ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which array function checks if the specified key exists in the array? array_key_exists() array_keys_exists() arrays_key_exists() array_key_exist() array_key_exists() array_keys_exists() arrays_key_exists() array_key_exist() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which of the following are correct ways of creating an array?1. state[0] = “karnataka”;2. $state[] = array(“karnataka”);3. $state[0] = “karnataka”;4. $state = array(“karnataka”); 2 and 3 2, 3 and 4 Only 1 3 and 4 2 and 3 2, 3 and 4 Only 1 3 and 4 ANSWER DOWNLOAD EXAMIANS APP