会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小慧blog
上一页
1
2
3
4
5
6
7
8
9
···
64
下一页
2019年5月5日
saber
摘要: PHP异步协程HTTP客户端
阅读全文
posted @ 2019-05-05 17:30 薇薇123456
阅读(74)
评论(0)
推荐(0)
编辑
swlib
摘要: Swoole人性化组件库 ~ Swoole Humanization Component Library
阅读全文
posted @ 2019-05-05 17:28 薇薇123456
阅读(98)
评论(0)
推荐(0)
编辑
Operation not permitted
摘要: 原因:权限不够 解决办法:切换到root权限
阅读全文
posted @ 2019-05-05 15:02 薇薇123456
阅读(544)
评论(0)
推荐(0)
编辑
驼峰转换
摘要: $string = 'border-bottom-color'; $preg = '/-([a-z])/'; $newString = preg_replace_callback($preg, function($matches){ return ucwords($matches[1]); }, $string); echo $newString;
阅读全文
posted @ 2019-05-05 14:11 薇薇123456
阅读(78)
评论(0)
推荐(0)
编辑
匹配一个文章里面的所有的超链接
摘要: header('Content-Type:text/html;charset=utf-8'); $string = '百度 新浪'; $preg = '/href="(.*?)">/'; preg_match_all($preg, $string, $matches); var_dump($matches);
阅读全文
posted @ 2019-05-05 13:55 薇薇123456
阅读(162)
评论(0)
推荐(0)
编辑
匹配@后面的部分
摘要: $string = 'caoyang@sina.com'; // 匹配@之后的部分 $preg = '/(?<=@).*/'; $status = preg_match_all($preg, $string, $matches); echo $status; var_dump($matches);
阅读全文
posted @ 2019-05-05 13:51 薇薇123456
阅读(123)
评论(0)
推荐(0)
编辑
匹配p后面不是h的单词
摘要: $string = 'python perl pear php'; // 获取p后面不是h的单词 $preg = '/\bp(?!h)[a-z]+\b/'; $status = preg_match_all($preg, $string, $matches); var_dump($matches);
阅读全文
posted @ 2019-05-05 13:50 薇薇123456
阅读(146)
评论(0)
推荐(0)
编辑
匹配@之前面的部分
摘要: $string = 'caoyang@sina.com'; // 匹配@之前的部分 $preg = '/.*(?=@)/'; $status = preg_match_all($preg, $string, $matches); var_dump($matches);
阅读全文
posted @ 2019-05-05 13:48 薇薇123456
阅读(72)
评论(0)
推荐(0)
编辑
把一个数字的字符串转换为千分符的标识方式?
摘要: $string = '12345678'; $preg = '/(?=(?!\b)(\d{3})+$)/'; $newString = preg_replace($preg,',',$string); var_dump($newString);die;
阅读全文
posted @ 2019-05-05 13:43 薇薇123456
阅读(118)
评论(0)
推荐(0)
编辑
下标重置
摘要: array_valeus
阅读全文
posted @ 2019-05-05 11:45 薇薇123456
阅读(74)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
···
64
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告