PHP开发必备VSCode插件(大全) 2022年02月28日 liziyu 10 通用 序号 名称 描述 1 chinese(simplified ...) 简体中文语言包 2 li... 阅读全文 1 评论
解决打开Github速度慢的问题 2022年02月26日 liziyu 6 第一步:下载https://github.com/oldj/SwitchHosts/releases第二步:自选适合的方法获取IPhttps://github.com/ineo6/hosts 阅读全文 0 评论
PHP的类型声明 2022年02月23日 liziyu 6 一、单一类型类型说明版本 类/接口名称值必须为指定类和接口的实例化对象 instanceof self值必须是用于类型声明相同类的 instanceof 。 仅可在类中使用。 parent值必须是用于类型声明父级类的 instanceof , 仅可在类中... 阅读全文 0 评论
SQL语句分类有哪些?分别代表什么意思? 2022年02月20日 liziyu 6 1.数据查询语言(DQL)数据查询语言(Data Query Language, DQL)保留字SELECT、FROM,WHERE,GROUP BY,HAVING和ORDER BY(查询操作)。2.数据定义语言(DDL)数据定义语言 (Data Defi... 阅读全文 0 评论
MAMP与MAMP pro安装包支持MACOS系统的M1与intel芯片 2022年02月19日 liziyu 6 M1版:https://pan.baidu.com/s/1C3-aZv7-uRXBt7wQCS0Q2w 提取码: wcoiIntel版:链接: https://pan.baidu.com/s/1NKxce4YG7nK0mqmcQlltgg 提取码: bf3i 阅读全文 0 评论
如何理解workerman中主进程与子进程? 2022年02月17日 liziyu 6 一般来说在Worker::runAll();调用前运行的代码都是在主进程运行的,onXXX回调运行的代码都属于子进程。注意写在Worker::runAll();后面的代码永远不会被执行。use Workerman\Worker; use Workerma... 阅读全文 0 评论
TP6.0.x升级报错:Script @php think service:discover handling the post-autoload-dump event returned with error code 255 2022年02月15日 liziyu 5 报错完整信息为:Deprecated: Method ReflectionParameter::getClass() is deprecated in /vendor/topthink/think-container/src/Container.php ... 阅读全文 0 评论
webman如何设置env来切换环境(开发or生产)? 2022年02月15日 liziyu 5 1、在文件support/helper.php添加:function env($key, $default = null) { static $env_config = []; if (!$env_config) { $e... 阅读全文 0 评论
PHP静态变量赋值需要注意! 2022年02月12日 liziyu 7 <?php function foo(){ static $int = 0; // correct static $int = 1+2; // correct static $int = s... 阅读全文 0 评论