@@ 5301-5303 (lines=3) @@ | ||
5298 | if ($token['data']['function'] != '') { |
|
5299 | // normal function |
|
5300 | $ops = []; // array of operators |
|
5301 | for ($i = 0; $i < $token['data']['args']; ++$i) { |
|
5302 | $ops[] = array_pop($formulaStrings); |
|
5303 | } |
|
5304 | $ops = array_reverse($ops); |
|
5305 | $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ')'; |
|
5306 | unset($space0, $space1); |
|
@@ 5310-5312 (lines=3) @@ | ||
5307 | } else { |
|
5308 | // add-in function |
|
5309 | $ops = []; // array of operators |
|
5310 | for ($i = 0; $i < $token['data']['args'] - 1; ++$i) { |
|
5311 | $ops[] = array_pop($formulaStrings); |
|
5312 | } |
|
5313 | $ops = array_reverse($ops); |
|
5314 | $function = array_pop($formulaStrings); |
|
5315 | $formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ')'; |