Here is my code, you should be able to see what I'm trying to do by just looking at it. It seems to want to loop infinitely.
$rounds=0; for($i = 2; $i <= 32; $i * 2){ $rounds++; } echo $rounds;
Any help would be appreciated! Thanks.
You have to set equality in the last argument of the for statement.
$rounds=0; for($i = 2; $i <= 32; $i = ($i * 2)) { $rounds++; } echo $rounds;
You know what, I just figured this out as you did. Thanks for your help. I guess I'm just so used to $var++ and all that, I forgot I needed to do that. Thanks!