php - Why should substr be used to intercept the content obtained through file_get_contents?
我想大声告诉你2017-05-31 10:34:28
0
1
732
A problem recorded before, the complete code cannot be found.... It is not clear now why $iTime needs to be obtained by intercepting the file content, please take a look, thank you.
这个肯定是针对特定情况下的写的咯。
我猜测就是数据的文件缓存,前11位存的是过期的时间戳,后面存的是数据内容,通过获取前11位得到时间戳判断缓存有没有过期,然后做处理。
针对特定情况下使用,不通用,不过也不失为文件缓存的一种方式。