📜  数组映射 php key, $value - PHP 代码示例

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

代码示例1
$test_array = array("first_key" => "first_value", 
                "second_key" => "second_value");

var_dump(array_map_(function($key, $value){
    return $key . " loves " . $value;
}, $arr));