php闭包函数,一个典型的实例function getMoney() { $rmb = 1; $dollar = 6; $func = function($dollar) use (&$rmb) { echo $rmb; echo $dollar; $rmb++; }; $func($dollar); echo $rmb; } getMoney(); //input 1 6 2