@@ 5313-5315 (lines=3) @@ | ||
5310 | if ($token['data']['function'] != '') { |
|
5311 | // normal function |
|
5312 | $ops = []; // array of operators |
|
5313 | for ($i = 0; $i < $token['data']['args']; ++$i) { |
|
5314 | $ops[] = array_pop($formulaStrings); |
|
5315 | } |
|
5316 | $ops = array_reverse($ops); |
|
5317 | $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ')'; |
|
5318 | unset($space0, $space1); |
|
@@ 5322-5324 (lines=3) @@ | ||
5319 | } else { |
|
5320 | // add-in function |
|
5321 | $ops = []; // array of operators |
|
5322 | for ($i = 0; $i < $token['data']['args'] - 1; ++$i) { |
|
5323 | $ops[] = array_pop($formulaStrings); |
|
5324 | } |
|
5325 | $ops = array_reverse($ops); |
|
5326 | $function = array_pop($formulaStrings); |
|
5327 | $formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ')'; |