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)); Link to comment https://forums.phpfreaks.com/topic/70224-explanation-please/ Share on other sites More sharing options...
AndyB Posted September 22, 2007 Share Posted September 22, 2007 array element number Link to comment https://forums.phpfreaks.com/topic/70224-explanation-please/#findComment-352702 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? Link to comment https://forums.phpfreaks.com/topic/70224-explanation-please/#findComment-352703 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 Link to comment https://forums.phpfreaks.com/topic/70224-explanation-please/#findComment-352714 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.