Hi, I am looking to sort this array function in PHP.
Question
Given an array A = [10,20,30,40,50,60,70,80,90,100], write a function that receives two integers as parameters. The function returns the sum of elements in the array found between those two integers.
For example, if we use 20 and 50 as parameters, the function should return 140.
Can anybody help me to sort this out? Thanks
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.