05 2021 档案
摘要:Closure::bind 复制一个闭包,绑定指定的$this对象和类作用域 public static Closure::bind(Closure $closure ,object $newthis,mixed $newscope = 'static') :Closure 参数 closure :
        阅读全文
                
摘要:先看php.net上的解释 <?php namespace app\abc; class Person { public function test() { } } echo Person::class;// 会输出 app\abc\Person
        阅读全文
                
摘要:<?php // + // | ThinkPHP [ WE CAN DO IT JUST THINK ] // + // | Copyright (c) 2006-2019 http://thinkphp.cn All rights reserved. // + // | Licensed ( ht
        阅读全文
                
摘要:__DIR__ 文件所在的目录。如果用在被包含文件中,则返回被包括的文件所在的目录。它等价于dirname(__FILE__).除非是根目录,否则目录名中不包括末尾的斜杠. __FILE__ 包含文件的完整路径的文件名.如果用在被包含文件中,则返回被包含的文件名 __LINE__ 文件中的当前行号 
        阅读全文
                
摘要:git clone git@github.com:xuedingmiaojun/wxappUnpacker.git npm install esprima npm install css-tree npm install cssbeautify npm install vm2 npm install
        阅读全文
                
摘要:$t1 = microtime(true); $t2 = microtime(true); echo '耗时'.round($t2-$t1,3).'秒<br>'; echo 'Now memory_get_usage: ' . memory_get_usage() . '<br />'; exit(
        阅读全文
                
摘要:赋值 hset myhash username jack age 18 取值 hget myhash username 获取属性数量 hlen myhash 获得所有的key hkeys myhash 获得所有的值 hvals myhash
        阅读全文
                
摘要:Redis数据结构之字符串 设置字符串 set key name 获取字符串的值 get key 先获取再赋值 getset key value 递加 incr key 如果是字符串则报错 递减 decr key 递加指定 incrby key num 递减指定 decrbu key num 追加 
        阅读全文
                
                    
                
浙公网安备 33010602011771号