我正在使用 PHP readfile 函数读取文件并像这样打印它:print readfile ('anyfile')
. 这可行,但文件的内容长度也会添加到字符串的末尾。为什么?
问问题
5262 次
1 回答
21
readfile()
打印出内容本身并返回内容长度 - 您有效地打印内容,readfile
然后打印内容长度print
。删除打印并使用
readfile('anyfile');
于 2010-04-28T21:17:37.403 回答