while($number <= $#column) { #go through the array from 0 to the last element $number++; }