今天220.181.108.95和180.76.5.91来访了
作者:admin 日期:2012-10-20
不再仅仅是令人懊恼的123.125.*.*了,希望这是个好兆头。虽然咱不靠百度吃饭,不过怎么说呢。。面子问题。
220.181.108.95 Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html) 200 0 64
180.76.5.91 Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html) 200 0 0
php字符串过滤空格多个空格只保留一个
作者:admin 日期:2012-10-20
Asp实现的方法见:https://blog.guanjianci.net/article.asp?id=547
PHP代码
- $text=' 你 好 世 界! ';
- function blank($text){
- $text=trim($text);
- $x=0;
- while($x==0){
- $text=str_replace(' ',' ',$text);
- if(!strpos('@'.$text,' ')){
- $x=1;
- }
- }
- return $text;
- }
- echo blank($text);
代码执行结果:你 好 世 界!
utf8中文正则匹配问题
作者:admin 日期:2012-10-20
php函数str_replace的使用方法总结
作者:admin 日期:2012-10-20
广告位