PHP generates a list of double-misspelled domains
Whim want to register a good domain name, want a double spell domain name, almost all have been backorder. I don't know if there's any slip.
One try too much trouble, so I want to do a small program to generate all the double-domain list, and then bulk register query.
Talk less, give the code:
View Code
<?php//php generate a list of double-misspelled domains/* Analysis: -3 (33a[0]a[0] a[0]a[1] a[0]a[2] a[1]a[1]-4 12 13 14 21 22 23 24 31 32 33 3 4 41 42 43 44*///Chinese pronunciation table $ A = explode (', ' A ai an ang ao ba bai ban bang Bao bei ben Beng bi bian Biao bie bin Bing Bo Bu c A CAI can cang Cao ce cen ceng Cha Chai Chan Chang Chao che Chen Cheng Chi Chong Chou Chu Chua Chuai chuan Chuang Chui Chu N Chuo ci Cong cou cu cuan cui cun cuo da dai dan Dang Dao de den Deng di dia dian Diao die ding Diu dong dou du duan DUI Dun duo e ei en eng er fa fan Fang Fei Fen feng fo fou fu ga gai gan gang gao ge gei gen Geng Gong Gou gu gua Guai guan gu Ang gui gun guo Ha hai han hang hao he hei hen Heng Hong Hou hu hua Huai Huan Huang Hui hun huo ji Jia Jian Jiang Jiao Jie Jin Jing Jiong Jiu ju Juan jue June ka kai kan kang kao ke kei ken Keng Kong Kou ku kua Kuai Kuan Kuang kui kun kuo La lai Lan Lang Lao le Lei Leng Li Lian Liang Liao Lie Lin Ling Liu Lo long lou Lu Lüluan lue lüe lun luo lv m ma mai man Mang Mao me mei men meng mi mIan Miao Mie min Ming miu mo mou mu na nai nan nang nao ne nei nen neng ni nian niang niao nie nin ning Niu Nong Nou Nu nü Nuan nue Nun nuo nv o ou pa Pai pan Pang Pao pei Pen Peng Pi pian Piao pie pin ping po pou pu qi qia qian Qiang qiɑnwa qi Ao Qie Qin Qing qiong qiu qu Quan que Qun ran rang Rao re Ren reng ri rong rou ru Ruan Rui Run ruo sa sai San sang sao SE Sen Seng Sha Shai Shan Shang Shao she shen Sheng shi Shiwa shou shu shua shuai shuan shuang Shui Shun Shuo si song sou su Suan Sui sun suo ta tai Tan Tang tao te Teng ti tian Tiao tie ting Tong tou tu tuan Tui Tun Tuo wa Wai Wan Wang Wei Wen we Ng wo Wu Xi Xia xian xiang Xiao Xie Xin Xing Xiong Xiu Xu Xuan Xue Xun ya yan yang yao ye yi Yin Ying yo yong you yu yuan Yue Yun za zai zan zang zao ze zei zen Zeng Zha Zhai Zhan Zhang Zhao Zhe zhen Zheng Zhi zhong Zhou zhu Zhua zhuai zhuan en Uang Zhui Zhun Zhuo Zi Zong Zou zu zuan Zui zun Zuo '), $n = count ($a), $b = Array ();//Print_r ($a);//Echo ($n);//$n = 5;for ($i =0; $i <= $n-1; $i + +{for ($j =0; $j < $n-1; $j + +) {$b [] = $a [$i]. $a [$j]; }} $b = Formatarray ($b), $arr 1 = array_map (' addcom ', $b); $arr 2 = Array_map (' ADDCN ', $b);//$arrDomain = $b; $arrDomain = array _merge (Array (), $arr 1),//$arrDomain = Array_merge (Array (), $arr 1, $arr 2), $domain = implode ("\ n", $arrDomain); echo $ domain;/** * Delete the same element in the array, leaving only one * @param array $array * @return Array */function Formatarray ($array) {sort ($array); $tem = "; $temarray = Array (); $j = 0; for ($i =0; $i
Thinly-collated code:
<?php//php generate a double-misspelled list Set_time_limit (1800);//Chinese pronunciation table $ A = explode (", ' A ai an ang ao ba bai ban bang Bao bei ben Beng Bi Bia N Biao bie bin Bing Bo bu ca cai can cang Cao ce cen ceng Cha Chai Chan Chang Chao che Chen Cheng Chi Chong Chou Chu Chua Chuai Chuan Chuang Chui chun Chuo ci cong cou cu cuan cui cun cuo da dai dan Dang Dao de den Deng di dia dian diao die din G Diu dong Dou du duan dui dun duo e ei en eng er fa fan Fang Fei Fen feng fo fou fu ga gai gan gang gao ge gei gen Geng G Ong Gou gu Gua Guai Guan Guang gui gun guo Ha hai han hang hao he hei hen Heng Hong Hou hu hua Huai Huan Huang Hui hun huo Ji Jia Jian Jiang Jiao Jie Jin Jing jiong jiu ju Juan jue June ka kai kan kang kao ke kei ken Keng Kong Kou ku Kua Kuai ku An Kuang Kui kun kuo la lai lan Lang lao le Lei Leng Li Lian Liang Liao Lie Lin Ling Liu Lo long lou Lu LV Luan lue lve lu N Luo lv m ma mai man Mang Mao Me mei men meng mi mian miao Mie min Ming miu mo mou mu na nai nan nang nao ne nei nen neng NI Nian Niang niao nieNin Ning Niu Nong Nou Nu nv Nuan nue Nun nuo nv o ou pa Pai pan Pang Pao pei Pen Peng Pi pian Piao pie pin ping po pou pu Qi Qia qian Qiang qiɑnwa Qiao Qie Qin Qing qiong qiu qu Quan que Qun ran rang Rao re Ren reng ri rong rou ru Ruan Rui Run Ruo sa sai San sang Sao se Sen Seng Sha Shai Shan Shang Shao she shen Sheng shi Shiwa shou shu shua shuai Shuan Shuang Shu I shun Shuo si song sou su suan sui sun suo ta tai Tan Tang tao te Teng ti tian Tiao tie ting Tong tou tu tuan Tui Tun Tuo WA Wai Wan Wang Wei Wen weng wo Wu Xi Xia xian xiang Xiao Xie Xin Xing Xiong Xiu Xu Xuan Xue Xun ya yan yang yao ye yi Yi N Ying Yo yong you yu Yuan Yue Yun za zai zan zang zao ze zei zen Zeng Zha Zhai Zhan Zhang Zhao Zhe zhen Zheng Zhi Zhong z Hou Zhu Zhua zhuai zhuan Zhuang zhui Zhun Zhuo Zi Zong Zou zu zuan Zui zun Zuo '); $n = count ($a); $b = Array (); for ($i =0; $i & lt;= $n-1; $i + +) {for ($j =0; $j