https://github.com/ronald-kimeli/interview-question-php
Write a PHP function that receives two integers as parameters, the function returns the sum of the elements in the array found between the two integers. Use the array [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]. Example to guide you, we use 20 and 40 as the parameters, the return value should be the sum of 20,30,40 which is 90.
https://github.com/ronald-kimeli/interview-question-php
php-interview-question sum-of-elements-btw-two-integers-php
Last synced: 3 months ago
JSON representation
Write a PHP function that receives two integers as parameters, the function returns the sum of the elements in the array found between the two integers. Use the array [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]. Example to guide you, we use 20 and 40 as the parameters, the return value should be the sum of 20,30,40 which is 90.
- Host: GitHub
- URL: https://github.com/ronald-kimeli/interview-question-php
- Owner: ronald-kimeli
- Created: 2022-07-27T11:15:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-27T05:27:32.000Z (7 months ago)
- Last Synced: 2024-11-16T05:09:19.766Z (7 months ago)
- Topics: php-interview-question, sum-of-elements-btw-two-integers-php
- Language: Hack
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php-function
Here is a PHP function that receives two integers as parameters, the function returns the sum of the elements in the array found between the two integers. Use the array [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]