关于函数定义写法
现在好多框架里定义函数都用:
if (! function_exists('foo')) { //函数定义 function foo(){ ... } }
这种写法定义函数,而不是:
//函数定义 function foo(){ ... }
这种写法的好处是什么呢?
推荐文章: