我想在 php 示例中重新索引我的数组中的键和值,如果删除数据:“2”,数据 3 将重新索引为 2 并且里面的值array 3 {sequence : 3 "ssdummy tossssdo 3"}将更改为{sequence : 2 "ssdummy tossssdo 3"}
{
"sequence": 2,
"data": {
"1": {"sequence": "1", "todo": "dummy todo"},
"2": {"sequence": "2", "todo": "dummy todo 2"},
"3": {"sequence": "3", "todo": "ssdummy tossssdo 3"},}
}
繁星点点滴滴