For example, I have a small function that I want it to keep adding to it its results .
$test1 = 1;
$test2 = 2;
$doitanumbeoftime = 6;
$results = $test1 + $test2;
echo $results; //// which it will print out 3.
now my question, after the $results was found, I want that results to be added to $test2 variable and find that results and add it to $test2 one more time and so on till it did it 6 times.
So, I need a function/ loop that can illustrate this results.
so for the first results, it should be 3.
second results should be 5.
3rd results should be 7
4th results should be 9
5th results should be 11
and the 6th results should be 13.
this creates the output you ask for (3, 5, 7, 9, 11, 13):