1, function file() reads a file line by line and make them an array, then use fuction implode() to join the array elements together. This means get the whole content of the file "store".
2, use session is a better way.
2, use session is a better way.
这一句有什么作用。
file函数将文件读入到数组,implode将数据连接成串2。对于一个应用系统来说,应该把那些东西保存下来,来标识用户状态,和信息。
变化不大且生成较复杂的公共数据宜用序列化保存;用户状态个属于用户个人的信息宜用session保存