上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: show(); Inter 阅读全文
posted @ 2018-08-16 10:10 不一样的开始 阅读(93) 评论(0) 推荐(0) 编辑
摘要: test(); // 复制对象将导致一个E_USER_ERROR. //$test_clone = clone $test; Single 阅读全文
posted @ 2018-08-16 10:01 不一样的开始 阅读(96) 评论(0) 推荐(0) 编辑
摘要: $str = '1,234,567,890'; echo str_replace(',', '', $str, $i); //$i 输出的是装换个多少个','的数量 阅读全文
posted @ 2018-08-15 14:32 不一样的开始 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1.使用php的系统函数 number_format 2.自定义方法,调用php其他函数解决,这个方法的核心在于字符串反转,因为我们不确定这个数字有几位,所以从后往前加千分位 阅读全文
posted @ 2018-08-15 14:13 不一样的开始 阅读(1620) 评论(0) 推荐(0) 编辑
摘要: 创建验证规则 阅读全文
posted @ 2018-07-27 13:50 不一样的开始 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 用DB自带的getQueryLog方法直接打印: 若要打印出完整的sql语句,可将以下代码复制到AppServiceProvider中的boot方法中: 日志在storage/log/xxx_query.log 阅读全文
posted @ 2018-07-24 13:56 不一样的开始 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 前段ajax发送请求 laravel 创建验证的 表单请求( form request ) 执行命令 php artisan make:request StoreBlogPostRequest 阅读全文
posted @ 2018-07-23 10:15 不一样的开始 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 查看地址 阅读全文
posted @ 2018-07-13 16:36 不一样的开始 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-07-13 10:28 不一样的开始 阅读(111) 评论(0) 推荐(0) 编辑
摘要: /** * 添加log * @param [type] $msg [内容] */ function add_log($msg) { $file = 'log.txt'; $content = date('Y-m-d H:i:s')."\r\n".$msg."\r\n \r\n"; file_put_contents($file, $content, FILE_APP... 阅读全文
posted @ 2018-07-09 15:52 不一样的开始 阅读(254) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页