PHP Arrays What will be the output of the following PHP code?$number = array ("4", "hello", 2);echo (array_sum ($number)); 2 6 4 4hello2 2 6 4 4hello2 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$people = array("Peter", "Susan", "Edmund", "Lucy");echo pos($people); Peter Lucy Susan Edmund Peter Lucy Susan Edmund 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] . ".".$brother; Sam is the brother of Bob and Bob) Sam is the brother of Bob and Bob) $brother Error $brother Sam is the brother of Bob and Bob) Sam is the brother of Bob and Bob) $brother Error $brother ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("mango", "apple", "peach", "pear");$fruits = asort ($fruits);printr ($fruits); Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Error Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Error Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) 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");$result = array_flip($a1);print_r($result); Array ( [a] => a [b] => b [c] => c [d] => d ) Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [red] => a [green] => b [blue] => c [yellow] => d ) Array ( [a] => a [b] => b [c] => c [d] => d ) Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [red] => a [green] => b [blue] => c [yellow] => d ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which array function checks if the specified key exists in the array? arrays_key_exists() array_key_exist() array_key_exists() array_keys_exists() arrays_key_exists() array_key_exist() array_key_exists() array_keys_exists() ANSWER DOWNLOAD EXAMIANS APP