刚开始学习。这是我所拥有的:
<?php
$i = 0;
$num = $i * 12;
for ($i=0; $i<13; $i++) {
echo($i." times 12 = ".$num."<br>");
}
?>
结果应该是:
1 times 12 = 12
2 times 12 = 24
3 times 12 = 36
ETC...
我实际得到的结果是:
1 times 12 = 0
2 times 12 = 0
3 times 12 = 0
有任何想法吗?