这是我的JSON
[
{
"activity_code":"1",
"activity_name":"FOOTBALL"
},
{
"activity_code":"2",
"activity_name":"CRICKET"
}
]
我需要更新{"activity_code":"1","activity_name":"FOOTBALL"}
到{"activity_code":"1","activity_name":"TENNIS"}
基于activity_code
我怎样才能在 PHP 中实现这一点?