V Posted May 11, 2010 Share Posted May 11, 2010 I can't find anywhere what $i is for. I see it a lot in php function examples. Is it just a random variable or does something? Link to comment https://forums.phpfreaks.com/topic/201317-what-is-i/ Share on other sites More sharing options...
o3d Posted May 11, 2010 Share Posted May 11, 2010 $i, $j, $k, etc.. are used most frequently when looping through 'for' loops. I think it's just been adapted common practice over the years for easy reading. Link to comment https://forums.phpfreaks.com/topic/201317-what-is-i/#findComment-1056186 Share on other sites More sharing options...
litebearer Posted May 11, 2010 Share Posted May 11, 2010 just like algebra - its just a variable Link to comment https://forums.phpfreaks.com/topic/201317-what-is-i/#findComment-1056193 Share on other sites More sharing options...
V Posted May 11, 2010 Author Share Posted May 11, 2010 Oooh I see. I thought it did something specific. Thanks! Link to comment https://forums.phpfreaks.com/topic/201317-what-is-i/#findComment-1056195 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.