可能的复制品:
如何从 php 数组中删除元素
比如说,
Array(
[0] => Array
(
[0] => hello
[1] => open
)
[1] => Array
(
[0] => good
[1] => center
)
[2] => Array
(
[0] => hello
[1] => close
)
)
在操作之后,我想删除键为 1的元素:
Array(
[0] => Array
(
[0] => hello
[1] => open
)
[2] => Array
(
[0] => hello
[1] => close
)
)