PHP Arrays What will be the output of the following PHP code ?$a = array("a" => "Jaguar", "b" => "Land Rover", "c" => "Audi", "d" => "Maseratti");echo array_search("Audi", $a); c d a b c d a b ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays There are three different kind of arrays: 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 Numeric array, Associative array, Dimensional array Numeric array, String array, Multidimensional array ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$cars = array("Volvo", "BMW", "Toyota", "Honda", "Mercedes", "Opel");print_r(array_chunk($cars, 2)); Array ( [0] => Array ( [0] => Volvo [1] => Volvo ) [1] => Array ( [0] => BMW [1] => BMW ) [2] => Array ( [0] => Toyota [1] => Toyota ) ) Array ( [0] => Array ( [0] => Volvo [1] => BMW ) [1] => Array ( [0] => Toyota [1] => Honda ) [2] => Array ( [0] => Mercedes [1] => Opel ) ) Array ( [1] => Array ( [1] => Volvo [2] => BMW ) [2] => Array ( [1] => Toyota [2] => Honda ) [3] => Array ( [1] => Mercedes [2] => Opel ) ) Array ( [0] => Array ( [1] => Volvo [2] => BMW ) [1] => Array ( [1] => Toyota [2] => Honda ) [2] => Array ( [1] => Mercedes [2] => Opel ) ) Array ( [0] => Array ( [0] => Volvo [1] => Volvo ) [1] => Array ( [0] => BMW [1] => BMW ) [2] => Array ( [0] => Toyota [1] => Toyota ) ) Array ( [0] => Array ( [0] => Volvo [1] => BMW ) [1] => Array ( [0] => Toyota [1] => Honda ) [2] => Array ( [0] => Mercedes [1] => Opel ) ) Array ( [1] => Array ( [1] => Volvo [2] => BMW ) [2] => Array ( [1] => Toyota [2] => Honda ) [3] => Array ( [1] => Mercedes [2] => Opel ) ) Array ( [0] => Array ( [1] => Volvo [2] => BMW ) [1] => Array ( [1] => Toyota [2] => Honda ) [2] => Array ( [1] => Mercedes [2] => Opel ) ) 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 function computes the difference of arrays? array_diff diff_array diff_arrays arrays_diff array_diff diff_array diff_arrays arrays_diff ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");print_r(array_change_key_case($age, CASE_UPPER)); Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 ) Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 ) Array ( [peter] => 35 [ben] => 37 [joe] => 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 ) Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 ) Array ( [peter] => 35 [ben] => 37 [joe] => 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) ANSWER DOWNLOAD EXAMIANS APP