A function that transforms Chinese characters into pinyin
Author: qiushuiwuh Joined: 2003-11-22 Views: 232 Chinese because many problems are caused by problems such as file name better not to use Chinese now general solution is to produce an ID, this ID will make the page file name If the URL is also a common resolution now, it is generally used to use this transformation. Now it has been used. It has a lot of principles: use multi-dimensional array 1. Add index 2. Traversing the array $ D = array (array ", -20319), Array ("AI", - 20317), Array ("AN", - 20304), Array ("ANG", - 20295), Array ("AO", - 20292), Array ("ba", -20283), Array ("BAI", - 20265), Array ("BAN", - 20242), Array ("bao", - 20230), array ("bei", -20051), Array ("BENG", - 20032), Array ("BI", - 20026), Array ("Bian", - 20002), Array ("BIAO", -19990), Array ("Bie", - 19982), Array ("BING", - 19976), Array ("Bo", - 19805), Array ("bu", -19784), Array ("CAI", - 19774), Array ("CAN", - 19763), Array ("CANG", - 19756), Array ("CAO", -19751), Array ("Ce", - 19741), Array ("CHA", - 19739), Array ("CHAI", - 19728), Array ("CHAN", -19725, Array ("CHANG", - 19715), Array ("CHAO", - 19540), Array ("CHE", - 19531), Array ("CHEN", 19525), Array ("Cheng", -19515), array ("chi", - 1950 0), Array ("CHONG", - 19484), Array ("Chou", - 19467), Array ("Chuai", - 19289), Array ("chuan", 19288), Array ("Chuang", - 19281), Array ("Chun", - 19270), Array ("Chuo", - 19263), Array ("Ci", 19261), Array ("CONG", - 19249), Array ("COU", - 19243), Array ("cu"
Array ("CUAN", - 19235), Array ("CUN", - 19227), Array ("Cuo", - 19224), Array ("DA" , -19218), Array ("DAN", - 19038), Array ("DANG", - 19023), Array ("DAO", - 19018), Array ("de" , -19006), Array ("Di", - 18996), Array ("Dian", - 18977), Array ("DIAO", - 18961), Array ("DIE" , -18952), Array ("DIU", - 18774), Array ("DONG", - 18773), Array ("DOU", - 18763), Array ("dU" , -18756), Array ("DUAN", - 18735, Array ("DUN", - 18731), Array ("duo", - 18722), Array ("e" , -18710), Array ("ER", - 18696), Array ("Fa", - 18526), Array ("Fan", - 18518), Array ("fang" , -18501), Array ("FEN", - 18478), Array ("Feng", - 18463), Array ("fo", - 18448), array ("fou" , -18447), Array ("GA", - 18239), Array ("GAI", - 18237), Array ("GaN", - 18231), Array ("Gang" , -18220), Array ("GE", - 18201), Array ("GEI", - 18184), Array ("GEN", - 18183), Array ("geng" , -18181), Array ("GONG", - 18012), Array ("Gou", - 17988), Array ("Gua", - 17970), Array ("Guai", - 17964), Array ("GUANG", - 17950), Array ("GUI", - 17947), Array ("GUN", - 17931), Array ("Guo", - 17928), Array ("Ha", - 17922), Array ("Hai", - 17759), Array ("Han"
, -17752), Array ("HAO", - 17730), Array ("HE", - 17721), Array ("HEI", - 17703), Array ("HEN" , -17701), Array ("HONG", - 17692), Array ("hou", - 17683), array ("hu", - 17676), array ("hua" Array ("HUAN", - 17482), Array ("Hui", - 17454), Array ("Hui", - 17454), Array ("HUI", - 17454), Array ("hun" , -17433), Array ("JI", - 17417), Array ("JIA", - 17202), Array ("Jian", - 17185), Array ("jiang" , -16983), Array ("JIE", - 16942), Array ("JIN", - 16915), Array ("JING", - 16733), Array ("jiong" , -16708), Array ("JU", - 16689), Array ("Juan", - 16664), Array ("JUE", - 16657), Array ("jun" , -16647), Array ("Kai", - 16470), Array ("Kan", - 16465), Array ("KANG", - 16459), Array ("kao" , -16452), Array ("KEN", - 16433), Array ("keng", - 16429), Array ("KONG", - 16427), Array ("kou" , -16423), Array ("KUA", - 16412), Array ("KUAI", - 16407), Array ("Kuan", - 16403), Array ("K UAG ", - 16401), Array (" KUI ", - 16393), Array (" KUO ", - 16216), Array (" la ", - 16212), array (" Series ("Lao", - 16180), Array ("Lao", - 16180), Array ("Lao", - 16180), Array ("LAO", - 16180), Array ("Le", - 16171), Array (" Lei ", - 16169), Array (" Leng ", - 16158), Array (" Li ", - 16155), Array ("
Series ("LIAO", - 15933), Array ("LIAO", - 15933), ARRAY ("LIAO", - 15933), ARRAY ("LIAO", - 15920), ARRAY (" LIN, - 15915), ARRAY ("LING", - 15903), Array ("LONG", - 15878), Array ("Lou", - 15707), Array (" Lu ", - 15701), Array (" LUAN ", - 15667), Array (" LUE ", - 15661), Array (" LUN ", - 15659), ARRAY (" Luo, "MA", - 15640), Array ("MAI", - 15631), Array ("MAN", - 15625), Array ("Mang", - 15454), array (" Mao, - 15448), Array ("MEI", - 15435), Array ("MEN", - 15419), Array ("Meng", - 15416), array (" MI, - 15408), Array ("MIAN", - 15394), Array ("MIE", - 15377), Array ("min", - 15375), array (" ", - 15369), Array (" MOU ", - 15363), Array (" MOU ", - 15183), Array (" MU ", - 15180), array (" Na ", - 15165), Array (" Nai ", - 15158), Array (" NANG ", - 15150), Array (" NAO ", - 15149), Array (" Array ("NENG", - 15140), Array ("NENG", - 15140), Array ("NENG", - 15140), ARRAY ("Ni", - 15139), array (" Nian ", -15128), Array ("NIANG", - 15121), Array ("NIAO", - 15119), Array ("NIE", - 15117), Array ("NIN", - 15110), Array ("NING", -15109), Array ("NIU", - 14941), Array ("NU", - 14933), Array ("NV", - 14930), Array ("NUAN", -14929), Array ("NUE", - 14928), Array ("Nuo", - 14926), Array ("
O ", - 14922), Array (" OU ", - 14921), Array (" PA ", - 14908), Array (" Pan ", - 14902), Array (" Array ("PEI", - 14882), Array ("Pen", - 14873), Array ("PENG", - 14871), ARRAY ("PENG", - 14871), ARRAY ("PENG", - 14871), ARRAY ("" Array ("PIAO", - 14674), Array ("PIAO", - 14674), Array ("PIE", - 14670), Array ("PIN", - 14668), ARRAY (" PING ", - 14663), Array (" PU ", - 14645), Array (" Qi ", - 14630), Array (" QIA ", - 14594, array (" ", - 14429), Array (" QIANG ", - 14407), Array (" QIAO ", - 14399), Array (" QIE ", - 14384), Array (" Qin ", - 14379), Array (" ", - 14368), Array (" QIONG ", - 14355), Array (" Qiu ", - 14353), Array (" Qu ", - 14345), Array (" Quan ", - 14170), Array (" ", - 14159), Array (" Ran ", - 14149), Array (" Rang ", - 14145), Array (" Rao ", - 14140), Array (" RE ", - 14137), Array (" REN ", - 14125), Array (" ri ", - 14123), Array (" RONG ", - 14122), array (" Rou ", - 14112), Array (" Ru ", - 14099), Array (" RUI ", - 14097), Array (" Run ", - 14094), array (" Ruo ", -14092), Array ("SA", - 14090), Array ("San", - 14083), Array ("SANG", - 13917), Array ("SAO", -13914), Array ("SE", - 13910), Array ("SENG", - 13906), Array ("SHA", - 13905), Array ("Shai", -13896), Array ("SHAN", - 13894), Array ("Shang", - 13878), Array ("
SHAO ", - 13870), Array (" SHEN ", - 13847), Array (" SHENG ", - 13831), Array (" shi ", - 13658), array (" Shou ", - 13611), Array (" Shu ", - 13406), Array (" Shuai ", - 13404), Array (" SHUAN ", - 13400), array (" Shuang, - 13398), Array ("SHUI", - 13395), Array ("SHUN", - 13391), Array ("SHUO", - 13387), Array ("Si", - 13383), Array (" Song, - 13367), Array ("Sou", - 13359), Array ("Suan", - 13343), Array ("Sui", - 13340), array (" Sun, - 13329), Array ("Suo", - 13326), Array ("Ta", - 13318), Array ("TAI", - 13147), Array ("Tan", - 13138), array (" Array ("TEEN, - 13095), Array (" TEENG ", - 13095), Array (" TEENG ", - 13095), ARRAY (" Ti ", - 13091), Array (" " Array ("TIE", - 13063), Array ("TIE", - 13063), Array ("Tong", - 13060), Array ("tong", - 12888), array (" Tou ", - 12875), Array (" TUAN ", - 12860), Array (" TUI ", - 12858), Array (" Tun ", - 12852), Array (" Tuo ", - 12849), Array (" WA ", - 12838), Array (" Wan ", - 12829, Array (" WANG ", - 12812), Array ("WEEN", - 12607), Array ("WENG", - 12597), Array ("Wo", - 12594), Array ("wu", - 12585), Array ("XIA", - 12359), Array ("XIAN", - 12346), Array ("Xiang", - 12320), Array ("XIAO", - 12300), Array ("XIE", - 12120), Array ("xin", - 12099), Array ("xing"
, -12089), Array ("XIU", - 12067), Array ("Xu", - 12058), Array ("Xuan", - 12039), Array ("XUE" Array ("Ya", - 11847), Array ("YAO", - 11831), Array ("YANG", - 11798), Array ("YAO" , -11781), Array ("Yi", - 11589), Array ("YIN", - 11536), Array ("Ying", - 11358), Array ("YO" , - 11340), Array ("YOONG", - 11324), Array ("Yu", - 11303), Array ("YUAN", - 11097), Array ("Yue" , -11077), Array ("ZA", - 11055), Array ("ZAI", - 11052), Array ("ZAN", - 11045), Array ("ZANG" , -11041), Array ("ZE", - 11024), Array ("ZEI", - 11020), Array ("ZEN", - 11019), Array ("ZENG" , -11018), Array ("ZHAI", - 10838), Array ("ZHAN", - 10832), Array ("ZHANG", - 10815), Array ("zhao" , -10800), Array ("Zhen", - 10780), Array ("ZHENG", - 10764), Array ("zhi", - 10587), array ("zhong" , -10544), Array ("ZHOU", - 10519), Array ("Zhua", - 10331), Array ("Zhuai", - 10329), Array ( "Zhuan", - 10328, Array ("Zhui", - 10315), Array ("Zhun", - 10309), Array ("Zhuo", - 10307), Array ( "Zi", - 10296), Array (ZONG ", - 10281), Array (" Zou ", - 10274), Array (" Zu ", - 10270), Array (" Zuan ", - 10262), array ( "Zui", - 10260), Array ("Zun", - 10256), Array ("Zuo", - 10254))