file说明array file ( string filename [, int use_include_path [, resource context]] )和 file_get_contents() 一样,只除了 file() 将文件作为一个数组返回。数组中的每个单元都是文件中相应的一行,包括换行符在内。如果失败 file() 返回 FALSE。
如果也想在 include_path
中搜寻文件的话,可以将可选参数
参见 readfile(),fopen(),fsockopen(),popen(),file_get_contents() 和 include()。 | |||||