📜  php ErrorException 数组映射中未定义的变量 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:25.938000             🧑  作者: Mango

代码示例1
// don't forget to add "use ($variableName)"
array_map(function ($list) use ($variableName) {return $list["name"] != $variableName;}, $array);