For Loops - 5 parameters?

Hello

I recently took over a project from a consultant (which is why I am asking you guys this question and not the developer)…

Personally I’ve never seen a for loop with more then 3 parameters…


for(var i:uint = 0, l:uint = arr.length, counter:uint = 0; i < l; i++)
            {
                if(counter == 3)
                {
                    str += ",";
                    
                    counter = 0;
                }
                
                str += arr*;
                
                counter++;
            }

What would be the benefit or reasoning behind this?

Thanks