$file_path = "f:identification.txt"; if(file_exists($file_path)){ $str = file_get_contents($file_path);//将整个文件内容读入到一个字符串中 $strs = explode(" ", $str); } return $strs