$str=file_get_content($filename);//獲得內容
$arr=explode("\n",$str);//分行存入數組
foreach($arr as $row){//遍歷每行
$temp=explode(" ",$row);
//此時$temp[0]=前面的id號,$temp[1]=中文名,$temp[2]=後面的壹長串
//賦值吧
}
//explode是按字符分割string
//可以查查php手冊
//存回去用file_put_content