<?php for($i=1;$i<=100;$i++){ $sum+=$i; } echo $sum; echo '<hr/>';
为什么会出现(!)Notice:Undefinedvariable:suminD:\demo\test.phponline3CallStack#TimeMemoryFun...
为什么会出现( ! ) Notice: Undefined variable: sum in D:\demo\test.php on line 3
Call Stack
# Time Memory Function Location
1 0.0000 141296 {main}( ) ..\test.php:0
5050
求大神解答 展开
Call Stack
# Time Memory Function Location
1 0.0000 141296 {main}( ) ..\test.php:0
5050
求大神解答 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询