摘要:facade //门面模式测试namespace app\common;class Test{ public function hi($name) { return 'hi,' . $name; }}$test = new \app\comm
facade //门面模式
测试
namespace app\common;class Test{
public function hi($name)
{
return 'hi,' . $name;
}}
$test = new \app\common\Test;echo $test->hi('thinkphp'); // 输出 hello,thinkphp
批改老师:PHP中文网批改时间:2018-11-04 14:02:18
老师总结:写代码的时候尽量一行代码占一行,代码可读性好一些