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] . "."; Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack Sam is the brother of Bob and Bob) Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack Sam is the brother of Bob and Bob) 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 properties of that array as the object'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 object as the array's elements An array with properties of that array as the object'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 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); Error Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Error Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "orange", "banana");echo (next($fruits));echo (next($fruits)); orangebanana appleapple appleorange orangeorange orangebanana appleapple appleorange orangeorange ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fname = array("Peter", "Ben", "Joe");$age = array("35", "37", "43");$c = array_combine($fname, $age);print_r($c); Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( 35 37 43 ) Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) Array ( Peter Ben Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( 35 37 43 ) Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) Array ( Peter Ben Joe ) 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] => peach ) Array ( [0] => peach [1] => pear [2] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => peach ) Array ( [0] => peach [1] => pear [2] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) ANSWER DOWNLOAD EXAMIANS APP