How is a+(read/append) different from a(append) in php

后端 未结 1 1050
盖世英雄少女心
盖世英雄少女心 2020-12-22 04:22

I am reading(and slowly trying) the ways to interact with a txt file in php. I have already tried append and it adds data to the end of the txt file But how is a+ different

相关标签:
1条回答
  • 2020-12-22 05:11

    With a you can just append to the end of the file.

    With a+ you can read the file too, so you can move the file pointer using fseek and add content somewhere else inside the file.

    0 讨论(0)
提交回复
热议问题