Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-27T05:27:32.000Z (about 2 months ago)
- Last Synced: 2024-10-27T06:30:18.097Z (about 2 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]