![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
大王叫我来巡山哟
这个作者很懒,什么都没留下…
展开
-
php正则获取网页标题、关键字、网页描述代码
php正则获取网页关键字,代码如下: function get_keywords($html) { $html=strtolower($html); preg_match("@]*>(.*?)@si",$html, $regs); $headdata = $regs[1]; preg_match("/"]+)["']?/i", $headdata, $res); if (isse转载 2017-06-30 09:51:15 · 1096 阅读 · 0 评论 -
很全的php数组操作方法
一、数组操作的基本函数 数组的键名和值 array_values($arr);获得数组的值 array_keys($arr);获得数组的键名 array_flip($arr);数组中的值与键名互换(如果有重复前面的会被后面的覆盖) in_array("apple",$arr);在数组中检索apple array_search("apple",$arr);在数组中检索apple ,如果存转载 2017-06-30 09:52:40 · 315 阅读 · 0 评论