'Return a list of PHPArg objects'

def _getArgumentsFromPos(self, styles, text, pos):

    p = pos
    log.debug('_getArgumentsFromPos:    text:    %r', text[p:])
    phpArgs = []
    if ((p < len(styles)) and (styles[p] == self.PHP_OPERATOR) and (text[p] == '(')):
        p += 1
        paren_count = 0
        start_pos = p
        while (p < len(styles)):
            if (styles[p] == self.PHP_OPERATOR):
                if (text[p] == '('):
                    paren_count += 1
                elif (text[p] == ')'):
                    if (paren_count <= 0):
                        break
                    paren_count -= 1
                elif ((text[p] == ',') and (paren_count == 0)):
                    phpArg = self._parseOneArgument(styles[start_pos:p], text[start_pos:p])
                    if phpArg:
                        phpArgs.append(phpArg)
                    start_pos = (p + 1)
            p += 1
        if (start_pos < p):
            phpArg = self._parseOneArgument(styles[start_pos:p], text[start_pos:p])
            if phpArg:
                phpArgs.append(phpArg)
    return (phpArgs, p)
