摘要: 1、filetype("a.txt"):文件类型 2、is_dir("a"):判断是否是文件夹 3、fileatime("a.txt"):获取文件上次访问时间(时间戳) 4、filectime("a.txt"):获取文件创建时间(时间戳) 5、filemtime("a.txt"):获取文件修改时间( 阅读全文
posted @ 2019-06-03 16:45 leon-chan 阅读(281) 评论(0) 推荐(0) 编辑
摘要: php中的变量存储在变量容器zval中,zval中除了存储变量类型和值外,还有is_ref和refcount字段。refcount表示指向变量的元素个数,is_ref表示变量是否有别名。如果refcount为0时,就回收该变量容器。如果一个zval的refcount减1之后大于0,它就会进入垃圾缓冲 阅读全文
posted @ 2019-06-03 09:21 leon-chan 阅读(130) 评论(0) 推荐(0) 编辑