Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getLowest() {
- $lowest = 9999;
- foreach ($this->arrayData as $number) {
- $lowest = $number;
- }
- if (empty($this->arrayData)) {
- throw new Exception("Input array was empty");
- }
- if (!empty($this->arrayData)) {
- return $lowest;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement