会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小青年
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2019年8月29日
php获取数组中指定值的下标
摘要: public function find_by_foreach($array,$find)//$array数组 $find需要查找的值 { foreach ($array as $key => $v) { if($v==$find) { return $key;//返回对应值...
阅读全文
posted @ 2019-08-29 17:17 小ྀ青ྀ年້
阅读(2558)
评论(0)
推荐(0)
2019年7月19日
tp5 查询本年、本月、本周的方法
摘要: tp5自带了一些查询的方法,今天说一下查询本年、本月以及本周的方法 whereTime()//此方法代替了between and 方法 实际用法如下: ->whereTime('时间字段','year')//查询本年 ->whereTime('时间字段','month')//查询本月 ->where
阅读全文
posted @ 2019-07-19 11:46 小ྀ青ྀ年້
阅读(2778)
评论(0)
推荐(0)
2019年6月20日
js特效玫瑰花
摘要:
阅读全文
posted @ 2019-06-20 09:30 小ྀ青ྀ年້
阅读(685)
评论(0)
推荐(0)
php Excel导出id
摘要: Filename: public function files(){ $filename = $_FILES['file']['name']; $ext = preg_split("/\./", $filename); ...
阅读全文
posted @ 2019-06-20 09:24 小ྀ青ྀ年້
阅读(209)
评论(0)
推荐(0)
2019年6月18日
php Excel导出功能
摘要: 转载至:https://www.cnblogs.com/phpjinggege/p/9016162.html
阅读全文
posted @ 2019-06-18 14:17 小ྀ青ྀ年້
阅读(3024)
评论(0)
推荐(0)
2019年5月21日
用shell脚本执行php删除缓存文件
摘要: <?php #定义删除路径//服务器缓存目录的路径 $path = '/www/wwwroot/****/data/runtime'; #调用删除方法 deleteDir($path); function deleteDir($dir) { if (!$handle = @opendir($dir)) { return false; } while (...
阅读全文
posted @ 2019-05-21 10:21 小ྀ青ྀ年້
阅读(342)
评论(0)
推荐(0)
2019年5月9日
PHP curl采集
摘要: if (function_exists('curl_init')) { //检查函数是否存在 $url = "http://***.com/"; $ch = curl_init(); //初始化curl会话 curl_setopt($ch, CURLOPT_URL, $url); //设置url ...
阅读全文
posted @ 2019-05-09 15:17 小ྀ青ྀ年້
阅读(449)
评论(0)
推荐(0)
2019年4月26日
php删除某个字段
摘要: unset();
阅读全文
posted @ 2019-04-26 10:19 小ྀ青ྀ年້
阅读(881)
评论(0)
推荐(0)
2019年4月24日
php 数组写入文件
摘要: $fiele = '../data/conf/watermark.php';//指定要写入的文件 $param = $this->request->param(); $watermark = $param['watermark'];//获取前台传值 $array = "'".$watermark."']//需要写入的值 ?>"; if(file_put_c...
阅读全文
posted @ 2019-04-24 17:54 小ྀ青ྀ年້
阅读(490)
评论(0)
推荐(0)
2019年4月23日
php Excel 导入功能
摘要: 下载excel类地址 https://pan.baidu.com/s/1OfPmq4dKAaxBUSbQ3an8ZQ 密码:kmh2 本人用的thinkcmf框架 把类文件放在框架的类文件里面,下面直接上代码 注:excel一定要放在框架公共类文件里面,因为这个本人绕了好久,一直报错。所以请大家注意
阅读全文
posted @ 2019-04-23 15:14 小ྀ青ྀ年້
阅读(2074)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告