上一页 1 2 3 4 5 6 7 8 9 ··· 64 下一页

2019年5月5日

摘要: PHP异步协程HTTP客户端 阅读全文
posted @ 2019-05-05 17:30 薇薇123456 阅读(74) 评论(0) 推荐(0) 编辑
摘要: Swoole人性化组件库 ~ Swoole Humanization Component Library 阅读全文
posted @ 2019-05-05 17:28 薇薇123456 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 原因:权限不够 解决办法:切换到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) 编辑
摘要: $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 下一页

导航