PHP Arrays Which function will return true if a variable is an array or false if it is not? this_array() do_array() is_array() in_array() this_array() do_array() is_array() in_array() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use? sort() krsort() usort() ksort() asort() sort() krsort() usort() ksort() asort() 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 Volvo, BMW and Toyota I like Toyota, BMW and Volvo I like Volvo, Toyota and BMW I like BMW, Volvo and Toyota I like Volvo, BMW and Toyota I like Toyota, BMW and Volvo I like Volvo, Toyota and BMW I like BMW, Volvo and Toyota 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");$a2 = array("e" => "red","f" => "green", "g" => "blue");$result = array_intersect($a1, $a2);print_r($result); Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [e] => red [f] => green [g] => blue ) Array ( [a] => red [b] => green [c] => blue ) Array ( [a] => red [b] => green [c] => blue [d] => yellow [e] => red [f] => green [g] => blue ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [e] => red [f] => green [g] => blue ) Array ( [a] => red [b] => green [c] => blue ) Array ( [a] => red [b] => green [c] => blue [d] => yellow [e] => red [f] => green [g] => blue ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What array will you get if you convert an object to an array? An array with properties of that object as the array's elements An array with keys of that object as the array's elements An array with properties of that object as the Key elements An array with properties of that array as the object's elements An array with properties of that object as the array's elements An array with keys of that object as the array's elements An array with properties of that object as the Key elements An array with properties of that array as the object's elements 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; $brother Error Sam is the brother of Bob and Bob) Sam is the brother of Bob and Bob) $brother $brother Error Sam is the brother of Bob and Bob) Sam is the brother of Bob and Bob) $brother ANSWER DOWNLOAD EXAMIANS APP