files - locations of lists...
lists - variables of concern...
What I see is this:
a) lists[ i ] is with respect to files[ i ] here... What you'd have to do is just:
PHP Code:
for ( temp.var: list )
obj.(@ temp.var ) = item.(@ temp.var );
b) Variables might be reserved.