$sum=1;
for($i=1;$i<=$name;$i ){
$sum*=$name[$i];
echo "{$sname} != {$sum}";
提示错误?
whxn2019-05-24 23:26:19
The cause of the error has been solved and now I understand! = has no specific meaning, just a symbol
她说2019-05-24 23:25:07
The reason for the error is that the braces after the for loop do not match
她说2019-05-24 23:24:23
That's not a factorial, it's a statement from echo, so it looks like a factorial after it's output.