PHP Arrays What array will you get if you convert an object to an array? An array with properties of that object as the Key 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 array as the object's elements An array with properties of that object as the Key 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 array as the object's elements 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); Lucy Susan Peter Edmund Lucy Susan Peter Edmund 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] => apple [1] => mango ) Array ( [0] => peach [1] => pear [2] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => peach [1] => pear [2] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => peach ) 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, Toyota and BMW I like Toyota, BMW and Volvo I like Volvo, BMW and Toyota I like BMW, Volvo and Toyota I like Volvo, Toyota and BMW I like Toyota, BMW and Volvo I like Volvo, BMW and Toyota ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("mango", "apple", "pear", "peach");$fruits = array_flip($fruits);echo ($fruits[0]); 0 mango peach error 0 mango peach error 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; 19 NULL 5 78 19 NULL 5 78 ANSWER DOWNLOAD EXAMIANS APP