MCQs
Total Questions : 16
| Page 2 of 2 pages
Answer: Option D. -> 6
The array_sum() function add all the values of the input array together, returning the final sum. If a string datatype is found, it'll be ignored.
Answer: Option D. -> 6
The array entity holding pear and mango is counted as an item, just as its contents are.
Answer: Option C. -> Array ( [0] => apple [1] => mango )
The array_splice() function removes all elements of an array found within a specified range.
Answer: Option D. -> Array ( [0] => peach [1] => pear [2] => orange )
The array_slice() function returns a section of an array based on a starting and ending offset value.
Answer: Option C. -> natcasesort()
natcasesort()
Answer: Option C. -> array_count_values()
array_count_values()