A simpler answer. function ($quantity) use ($tax, &$total) { .. }; The closure is a function assigned to a variable, so you can pass it around A closure is ...
確定! 回上一頁