Write a PHP script to find the sum of all elements in an array [1, 2, 3, 4, 5].
EasyProblem Statement
Write a PHP script to find the sum of all elements in an array [1, 2, 3, 4, 5].
Sample Input
An array of numbers.
Sample Output
15
Limits
Time: 2s · Memory: 256 MB