private function append(array &$tree, array $values, int $startKey, int $endKey) { $value = ''; for ($i = $startKey; $i < $endKey; $i++) { $value .= $values[$i]; } $tree[] = $value . 'IDENTITY_OR_FUNCTION_END'; }