摘要: 对象转数组,原先私有化的属性不能被用来比较和 $em[''] 这样输出,但是循环输出是没问题的,有点奇怪,知道的人请留言!! <?php header('content-type:text/html;charset=gdt8'); class Pre1 { private $name = '大爷'; 阅读全文
posted @ 2020-03-26 14:51 期待明天** 阅读(252) 评论(0) 推荐(0) 编辑
摘要: AtomicInteger类的理解与使用 首先看两段代码,一段是Integer的,一段是AtomicInteger的,为以下: public class Sample1 { private static Integer count = 0; synchronized public static vo 阅读全文
posted @ 2020-04-13 11:31 期待明天** 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 1.header 2 header("Content-Type:application/vnd.ms-excel"); 3 header("Content-Disposition:attachment;filename=sample.xls"); 4 header("Pragma:no-cach 阅读全文
posted @ 2019-12-16 10:30 期待明天** 阅读(213) 评论(0) 推荐(0) 编辑
摘要: http_build_query (PHP 5, PHP 7) http_build_query — 生成 URL-encode 之后的请求字符串 阅读全文
posted @ 2019-10-31 17:38 期待明天** 阅读(951) 评论(0) 推荐(0) 编辑