编辑代码

<?php


//     {
//         "key": "evaluate_status",
//         "operation": "read",
//         "type": "config_center"
//     }
$arr = [
"t_s_Y&O_is_sample",
"t_s_fkkkv_is_sample",
"t_s_panda_is_sample",
"t_s_ch_is_sample",
"t_s_idn_is_sample",
"t_s_x11_is_sample",
"t_s_tc_is_sample",
"t_s_kk_is_sample",
"t_s_kkv_is_sample"
    ];
foreach ($arr as $item) 
{
    $res[] = [
        'key' => $item,
        'operation' => 'read',
        'type' => 'specification' 
       
        
        ];
}

echo json_encode($res);