譬如之前thinkphp操作session用的session()函数,现在用的是Session静态类,采用Session::get,Session::set等静态方法去处理,静态方法和普通函数的优缺点是什么?
数据分析师2017-10-01 00:50:41
What are the benefits of using static classes extensively in Thinkphp5? -PHP Chinese website Q&A-What are the benefits of Thinkphp5's extensive use of static classes? -PHP Chinese website Q&A
Let’s take a look and learn.