Question:What is the simplest method of computing the sum of all the elements of an array? 

A By traversing the array with a for loop 

B By traversing the array with a foreach loop 

C By using the array_intersect function 

D By using the array_sum function 

E By using array_count_values() 

+ Answer
+ Explanation
+ Report
Total Preview: 1295

Copyright © 2024. Powered by Intellect Software Ltd