I have to make a function that works like this:
telOp(2, 5) => 2 + 3 + 4 + 5 = 14
Or
telOp(1, 6) => 1 + 2 + 3 + 4 + 5 + 6 = 21

I have tried a few things but I can't seem to figure it out. I tried making a while loop in the function:

```
<?php
function telOp($getal1, $getal2){
    while ($getal1 <= $getal2){
        echo $getal1++;
    }
}
$resultaat = telOp(5, 10);
print ($resultaat);

```

Now this will print the numbers from 5 through 10 but I can't seem to make it work that they add up.

I have also tried simply adding the numbers up with a return statement but combining the 2 doesn't seem to work.:

```
<?php
function telOp($getal1, $getal2){
    while ($getal1 <= $getal2){
        echo $getal1++;
    }
    $resultaat = ($getal1 + $getal2);
    return $resultaat;
}
$resultaat = telOp(5, 10);
print ($resultaat);

```

I am new to php so any tips would also be appreciated!