本程序将中文日期输出为2001-12-23,并很好解决了“十”的问题,如“十一”和“二十一”中“十”的处理!稍加修改可改为函数。$str="二零○一年十二月二十三日";echo$str."";$flag=0;$cn=array;$num=array;$len=strlen;for{$array_str[$i]=substr;$cout=0;while{if{ifecho"-";if{$temp[$cout]="1";echo$temp[$cout];$flag=2;break;}$temp[$cou