Which array function checks if the specified key exists in the array? array_key_exists() arrays_key_exists() array_key_exist() array_keys_exists() TRUE ANSWER : ? YOUR ANSWER : ?
There are three different kind of arrays: Const array, Associative array, Multidimensional array Numeric array, Associative array, Multidimensional array Numeric array, String array, Multidimensional array Numeric array, Associative array, Dimensional array TRUE ANSWER : ? YOUR ANSWER : ?
What function computes the difference of arrays? diff_array diff_arrays array_diff arrays_diff TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$names = array("Sam", "Bob", "Jack");<br/>echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . ".".$brother; Sam is the brother of Bob and Bob) $brother Error Sam is the brother of Bob and Bob) $brother TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$fruits = array ("apple", "orange", "banana");<br/>echo (next($fruits));<br/>echo (next($fruits)); orangeorange appleapple appleorange orangebanana TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$fname = array("Peter", "Ben", "Joe");<br/>$age = array("35", "37", "43");<br/>$c = array_combine($age, $fname);<br/>print_r($c); Array ( 35 37 43 ) Array ( Peter Ben Joe ) Array ( [35] => Peter [37] => Ben [43] => Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$fruits = array ("apple", "mango", "peach", "pear", "orange");<br/>$subset = array_splice ($fruits, 2);<br/>print_r ($fruits); Array ( [0] => apple [1] => mango ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => pear [1] => orange ) Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$city_west = array("NYC", "London");<br/>$city_east = array("Mumbai", "Beijing");<br/>print_r(array_replace($city_west, $city_east)); Array ( [0] => Mumbai [1] => Beijing ) Array ( [1] => Mumbai [0] => Beijing ) Array ( [1] => NYC [0] => London ) Array ( [0] => NYC [1] => London ) TRUE ANSWER : ? YOUR ANSWER : ?
What will the following script output?<br/>$array = array (1, 2, 3, 5, 8, 13, 21, 34, 55);<br/>$sum = 0;<br/>for ($i = 0; $i < 5; $i++) {<br/>$sum += $array[$array[$i]];<br/>}<br/>echo $sum; 5 NULL 78 19 TRUE ANSWER : ? YOUR ANSWER : ?
What functions count elements in an array?<br/>1. count<br/>2. Sizeof<br/>3. Array_Count<br/>4. Count_array Option 2 and 4 Option 1 and 4 Option 1 and 2 Option 3 and 4 TRUE ANSWER : ? YOUR ANSWER : ?