file說明array file ( string filename [, int use_include_path [, resource context]] )和 readfile() 一樣,只除了 file() 將檔案作為一個陣列返回。陣列中的每個單元都是檔案中相應的一行,內含換行符在內。若果失敗 file() 返回 FALSE。 若果也想在 include_path 中搜尋檔案的話,可以將可選參數 use_include_path 設為 "1"。
參見 readfile(),fopen(),fsockopen(),popen(),file_get_contents() 和 include()。 | |||||