function monthly(a, b, n, array) {
const result = a * b / 12;
var m = [];
array = m.push([{"a": a, "b": b}]);
// console.log("%f * %f / 12 = %f", a, b, result);
if (n) return monthly(a + result, b, n - 1, array);
else return array;
}
// find all span tags with class=gb1
foreach($html->find('span.gb1') as $e)
echo $e->outertext . '<br>';