摘要: key_exists('key',$arr); array_key_exists('key',$arr) 避免使用isset和empty 校验数组元素是否存在。 阅读全文
posted @ 2021-06-01 16:15 撒浪、嘿哟 阅读(54) 评论(0) 推荐(0)
摘要: $arr=["php",'java','go','python','vue','js','h5']; $arrNew=array_splice($arr,0,2); var_dump($arrNew); array(2) { [0]=> string(3) "php" [1]=> string(4) 阅读全文
posted @ 2021-05-31 10:51 撒浪、嘿哟 阅读(138) 评论(0) 推荐(0)
摘要: 1.通过composer 引入到项目中 composer require guzzlehttp/guzzle:~6.0 2.构建请求参数: $data = array("name"=>"callback" , "value"=>"test"); $rescult = http_build_query 阅读全文
posted @ 2021-05-19 09:17 撒浪、嘿哟 阅读(151) 评论(0) 推荐(0)
摘要: 一、(推荐)select insert(mobile,4,4,'****')as mobile from users;二、 select replace(mobile,substr(mobile,4,4),'****') as mobile from users; 阅读全文
posted @ 2021-05-18 16:50 撒浪、嘿哟 阅读(777) 评论(0) 推荐(0)
摘要: public function cursor($count = 50, $column = null, $order = "asc") { $this->chunk($count, function ($ret) { foreach ($ret as $item) { yield $item; } 阅读全文
posted @ 2021-05-18 16:36 撒浪、嘿哟 阅读(259) 评论(0) 推荐(0)
摘要: $url="https://xxx.xxx.com/uploads/images/img/202101/08/cy_1610083365_1agwoAwBXl.jpg"; $filename = basename($url); $headers = get_headers($url, 1); $fi 阅读全文
posted @ 2021-05-18 16:34 撒浪、嘿哟 阅读(218) 评论(0) 推荐(0)
摘要: 如下命令: cat ** | grep "****"其中**表示要查看的文件, grep"****"表示查看文件内容 阅读全文
posted @ 2021-05-18 16:32 撒浪、嘿哟 阅读(415) 评论(0) 推荐(0)
摘要: PHP的内置函数:strrev() 阅读全文
posted @ 2021-05-18 16:31 撒浪、嘿哟 阅读(85) 评论(0) 推荐(0)
摘要: php-DFA-filterWord github:https://github.com/FireLustre/php-dfa-sensitive 阅读全文
posted @ 2021-05-18 16:29 撒浪、嘿哟 阅读(88) 评论(0) 推荐(0)
摘要: $urlArr=['https://files.dianlinet.com/uploads/images/img/202101/08/cy_1610083365_1agwoAwBXl.jpg','https://files.dianlinet.com/uploads/images/img/20210 阅读全文
posted @ 2021-05-18 16:26 撒浪、嘿哟 阅读(387) 评论(0) 推荐(0)