Parse error: syntax error, unexpected '*' [duplicate]
问题 This question already has answers here : PHP parse/syntax errors; and how to solve them (17 answers) Closed 4 years ago . My code: <?php function ci($principle, $rate, $time) { $ci = ($principle * (( (1 + $rate / 100) ** $time) - 1)); echo $ci; } ?> <?php echo ci(10,10,10); ?> And when I am running it, it gives the following error Parse error: syntax error, unexpected '*' in D:\Xampp\htdocs\php\functions.php on line 4 Please tell me what's the error in line 4 ( $ci = ($principle * (((1+$rate