PHP根据URL提取主域名,在网上荡了一个!
优化了一下域名库,支持了PHP7.0!
可以直接拿来用,测试了一下没发现问题!
<?...tg','dm','do','ru','ec','er','fr','fo','pf','gf','tf','va','ph','fj','fi','cv','fk','gm','cg','cd','co...'cards','cars','cash','center','ceo','chat','city','click','clothing','club','cn.com','coffee','com.co...'link','live','loan','lol','love','ltd','market','marketing','mba','media','men','mom','money','net.co...space','store','studio','style','support','taipei','tax','team','tech','test','tips','today','tools','top