搬砖程序员带你飞

砖搬得多了,就能盖楼

Go Base Syntax

featuredImage: https://cdn.lpflpf.cn/covers/golang-basic-structure.png go程序 go程序说明 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 package main // 程序包名, 与 php namespace 类似; 和java 相同 // import 可以通

PHP cycle life

featuredImage: https://cdn.lpflpf.cn/covers/php-cycle-life.png php 运行阶段 开始阶段 模块初始化 MINIT (module init) 这个阶段,将对每个扩展的PHP_MINIT_FUNCTION函数执行。一般执行如下操作: INI 配置文件的注

PHP array_merge 和 array + array 的区别

featuredImage: https://cdn.lpflpf.cn/covers/php-array_merge.png array_merge 官网说明 将一个或多个数组的单元合并起来,一个数组中的值附加在前一个数组的后面。返回作为结果的数组。 如果输入的数组中有相同的字符串键名,

PHP singleton

featuredImage: https://cdn.lpflpf.cn/covers/php-singleton.png 单例 单例模式,希望在程序上下文中,仅对对象做一次实例化。 问题 clone 会引起出现单例对象有多个实例 避免方式 clone 由于clone时,会调用对象的__c

mysql hint 学习

featuredImage: https://cdn.lpflpf.cn/covers/mysql-hint.png Index Hint 官网说明 语法说明 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 tbl_name [[AS] alias] [index_hint_list] index_hint_list: index_hint [index_hint] ... index_hint: USE { INDEX|KEY} [FOR { JOIN|ORDER BY|GROUP BY}] ([index_list]) | IGNORE { INDEX|KEY} [FOR { JOIN|ORDER BY|GROUP BY}] (index_list) | FORCE { INDEX|KEY} [FOR { JOIN|ORDER BY|GROUP BY}]
0%