There's nothing wrong. I just checked it and it works without a glitch. Here's the codefragment I used to test it:
<?php
$tfield = array('a', 'b', 'c', 'd', 'e');
$thedata = array();
$tcount = 5;
$i = 0;
while ($tcount != 0) {
$thedata[] = $tfield[$i];
$i++;
$tcount--;
}
$thevar =...