That is just a test to see if it outputs the data correctly. I've tried doing it this way: fngroupad($range[$counter,0]). However, it does not work.