Forum Moderators: coopster
$counter = 1
while(counter!==52){
$cellvalues['$counter'] = $avalue;
$counter++
}
$counter = 1
while(counter!==52){
echo $cellvalues['$counter'];
$counter++
}
Im expecting the array to be built in the first while loop but its not doing it, the only value i get is 52 - its as if the array is overwritten with each loop, i need to build up the arry
1 = value
2 = value
3 = value
etc
can anyone help me out please?
i've tried using $cellvalues = array($counter => $justtheweek);
instead of $cellvalues['$counter'] = $avalue; but isnt helping