Just wrap the closure in call_user_func : $conditions = 'condition_2'; $foo = match ($conditions) { 'condition_1' => 'some text', ...
確定! 回上一頁