为什么数组打印出来多个[3]=>
285Array ( [0] => 2 [1] => 8 [2] => 5 [3] => ) Array ( [0] => 2 [1] => 8 [2] => 5 [3] => ) Array ( [0] => 2 [1] => 8 [2] => 5 [3] => ) Array ( [0] => 2 [1] => 8 [2] => 5 [3] => )<?php
@$f=fopen("piccounter.txt", "r") or die("Unable to open file!");
$num=fread($f, filesize("piccounter.txt"));
$num++;
fclose($f);
$fw=fopen("piccounter.txt", "w");
fwrite($fw, $num);
fclose($fw);
echo $num;
$fr=fopen("piccounter.txt", "r");
$array_count=0;
while (!feof($fr)) {
$counter_array[$array_count]=fgetc($fr);
$array_count++;
}
foreach ($counter_array as $value) {
print_r($counter_array);
}
fclose($fr);
?>