php的function() use($args)用法


使用use返回 aaa aaa。使用函数传参数aaa bbb。

use的参数必须是已经存在的,如果没有定义返回Notice: Undefined variable: word ,使用函数参数方式不需要。

posted @ 2017-03-17 18:30  mentalidade  阅读(855)  评论(0编辑  收藏  举报