ballhogjoni Posted September 22, 2007 Share Posted September 22, 2007 I have this code and I am wondering what the variable $i is doing between the [] in $result[$i] Can some one explain this? for ($i = 0; $i < $years; $i++) $result[$i] = $amount * ($p *= (1 + $percent)); Quote Link to comment Share on other sites More sharing options...
AndyB Posted September 22, 2007 Share Posted September 22, 2007 array element number Quote Link to comment Share on other sites More sharing options...
ballhogjoni Posted September 22, 2007 Author Share Posted September 22, 2007 where would i learn more about the array element number? Quote Link to comment Share on other sites More sharing options...
Aeglos Posted September 22, 2007 Share Posted September 22, 2007 http://www.php.net/manual/en/language.types.array.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.