replace_idcard_list.txt

2022-10-14 11:34:12 阅读:2 编辑
$replace_idcard_list = [];

        $file = __DIR__."/../../replace_idcard_list.txt";

        if(file_exists($file)){
            $file = fopen($file,"r");
            while(! feof($file))
            {
                $temp_row = fgets($file);
                $temp_arr = explode(",",$temp_row);
                if(count($temp_arr) ==2){
                    $replace_idcard_list[$temp_arr[0]] = $temp_arr[1];
                }
            }
            //关闭被打开的文件
            fclose($file);
        }

replace_idcard_list.txt

320911,320903
320882,320803
320828,320803
320326,320381
320926,320982
321083,321281
320829,320813
320821,320804