时间:2021-07-01 10:21:17 帮助过:4人阅读
知识 维普资讯 中国期刊网 龙源期刊网 邮政报刊订阅网 杂志铺 MBA智库百科 星空天文网 劝学网
牧夫天文论坛 专利之家 环球科学 科学松鼠会 UFO探索网 果壳网 我学网 网易公开课
维基百科 我要自学网 中国留学网 知乎 网易学院 搜搜问问 新手学上网 国家核安全局
word联盟 爱问知识人 中国文明网
preg_match_all('/(.*)$href) { $arr[$matches[2][$k]] = $href; } var_export($arr); /**输出结果: array ( '维普资讯' => 'http://www.cqvip.com/', '中国期刊网' => 'http://www.chinaqking.com/', '龙源期刊网' => 'http://www.qikan.com.cn/', '邮政报刊订阅网' => 'http://bk.183.com.cn/index.do', '杂志铺' => 'http://www.zazhipu.com/', 'MBA智库百科' => 'http://wiki.mbalib.com/', '星空天文网' => 'http://www.cosmoscape.com/', '劝学网' => 'http://www.quanxue.cn/', '牧夫天文论坛' => 'http://www.astronomy.com.cn/bbs/', '专利之家' => 'http://www.patent-cn.com/', '环球科学' => 'http://www.sciam.com.cn/', '科学松鼠会' => 'http://songshuhui.net/', 'UFO探索网' => 'http://www.ufo-1.cn/', '果壳网' => 'http://www.guokr.com/', '我学网' => 'http://www.5xue.com/', '网易公开课' => 'http://v.163.com/open/', '维基百科' => 'http://zh.wikipedia.org/', '我要自学网' => 'http://www.51zxw.net/', '中国留学网' => 'http://www.cscse.edu.cn/', '知乎' => 'http://www.zhihu.com/', '网易学院' => 'http://tech.163.com/school/video/', '搜搜问问' => 'http://wenwen.soso.com/', '新手学上网' => 'http://xue.baidu.com/', '国家核安全局' => 'http://nnsa.mep.gov.cn/', 'word联盟' => 'http://www.wordlm.com/', '爱问知识人' => 'http://iask.sina.com.cn/', '中国文明网' => 'http://www.wenming.cn/', ) //PS:一次达到,好像没啥方法。 */
知识 维普资讯 中国期刊网 龙源期刊网 邮政报刊订阅网 杂志铺 MBA智库百科 星空天文网 劝学网
牧夫天文论坛 专利之家 环球科学 科学松鼠会 UFO探索网 果壳网 我学网 网易公开课
维基百科 我要自学网 中国留学网 知乎 网易学院 搜搜问问 新手学上网 国家核安全局
word联盟 爱问知识人 中国文明网 '; $patten = '/(.*)<\/a>/iU'; preg_match_all($patten,$str,$match); $result = array(); for($i = 0;$i"; print_r($result); ?>