Q42
What will be the output of the following PHP code?
A.
4hello2
B.
4
C.
2
D.
6
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
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.