摘要:
1 class AlarmController 2 { 3 const VALID = 1; //有效 4 const INVALID = 0; //无效 5 6 /** 7 * @param array $data 8 * @return bool 9 */ 10 public functi... 阅读全文
摘要:
https://www.epochconverter.com/ 阅读全文
摘要:
官方文档:http://php.net/manual/zh/function.call-user-func.php 工作中遇到这样的业务,会有很大switch的判断,如下: 如果以后在加很多case,那么会变得可读性很差,为了扩展于是我这样想的 这样就省略了switch case, 想要添加,只需要 阅读全文