0) { $previousCommaIndex = $commaIndexList[$i - 1] + 1; } else { $previousCommaIndex = 0; } $argument = trim( substr($functionContent, $previousCommaIndex, $commaIndexList[$i] - $previousCommaIndex) ); $argumentList[] = $argument; } return $argumentList; } }