http://qs321.pair.com?node_id=697569


in reply to Re^3: Corrupt Data?
in thread Corrupt Data?

Yes, but the problem is that how he's accessing the array. If he had been using $array[0] instead of $array[$j], he would have been fine (aside other issues such as variable reuse).