PHP Arrays Which function can be used to move the pointer to the previous array position? before() last() previous() prev() before() last() previous() prev() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function returns an array consisting of associative key/value pairs? count() count_values() array_count() array_count_values() count() count_values() array_count() array_count_values() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$array1 = array ("KA", "LA", "CA", "MA", "TA");$array2 = array ("KA", "IA", "CA", "GA", "TA");$inter = array_intersect ($array1, $array2);print_r ($inter); Array ( [1] => IA [3] => GA ) Array ( [0] => KA [2] => CA [4] => TA ) Array ( [1] => LA [3] => MA ) Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA ) Array ( [1] => IA [3] => GA ) Array ( [0] => KA [2] => CA [4] => TA ) Array ( [1] => LA [3] => MA ) Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$cars = array("Volvo", "BMW", "Toyota");echo "I like " . $cars[2] . ", " . $cars[1] . " and " . $cars[0] . "."; I like BMW, Volvo and Toyota I like Volvo, BMW and Toyota I like Volvo, Toyota and BMW I like Toyota, BMW and Volvo I like BMW, Volvo and Toyota I like Volvo, BMW and Toyota I like Volvo, Toyota and BMW I like Toyota, BMW and Volvo 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 ( [1] => Array ( [1] => Volvo [2] => BMW ) [2] => Array ( [1] => Toyota [2] => Honda ) [3] => Array ( [1] => Mercedes [2] => Opel ) ) Array ( [0] => Array ( [0] => Volvo [1] => BMW ) [1] => Array ( [0] => Toyota [1] => Honda ) [2] => Array ( [0] => Mercedes [1] => 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 ( [1] => Array ( [1] => Volvo [2] => BMW ) [2] => Array ( [1] => Toyota [2] => Honda ) [3] => Array ( [1] => Mercedes [2] => Opel ) ) Array ( [0] => Array ( [0] => Volvo [1] => BMW ) [1] => Array ( [0] => Toyota [1] => Honda ) [2] => Array ( [0] => Mercedes [1] => 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?$a = array("a"=>"red", "b"=>"green", "c"=>"blue");echo array_shift($a);print_r ($a); blue green none of the mentioned red blue green none of the mentioned red ANSWER DOWNLOAD EXAMIANS APP