for loops instead of iterators

Topics: Developer Forum, User Forum
Dec 1, 2009 at 8:30 AM

Is there a way to read xlsx file using for loops with the use of row and column indexes? Because I want to keep track on the column indexes.

who among you guys can help me with this? I am new to this project.

 

thanks

Developer
Jan 22, 2010 at 6:13 AM

Instead of this:

$worksheet->getCell('A1');

You can use this:

$worksheet->getCellByColumnAndRow(0, 1); // column base 0, row base 1