摘要: ps:由于PHP是单继承的,无法继承多个类所以可以用triat(关键字,特性)来命名达到子类继承多个父类的效果;暂且理解为类吧。class = trait 阅读全文
posted @ 2018-03-20 22:29 MiraclesGG 阅读(165) 评论(0) 推荐(0)
摘要: spl_autoload_register(function ($className) { require str_replace('\\', '/', $className '.php'); }) $person = new Function\person(); var_dump($person); 阅读全文
posted @ 2018-03-20 22:17 MiraclesGG 阅读(132) 评论(0) 推荐(0)