fopenの"a"モードと"a+"モードについて質問です。
読み込み/書き出し用でオープンします。ファイルポインタを ファイルの終端に置きます。ファイルが存在しない場合には、作成を 試みます。
Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
と公式のマニュアルに書いてあるのですが、ポインタはファイルの先頭に置かれてしまいます。

実験
テキストで「0123456789」という内容のtest.txtを用意して、

$fp = fopen('test.txt', 'a+');
echo ftell($fp)."<br>";
echo fgetc($fp)."<br>";
echo fread($fp, 1024)."<br>";
echo ftell($fp)."<br>";
fclose($fp);

というソースで動かしてみました。

期待した出力:
9


9

実際の出力:
0
0
123456789
10