我的数组看起来像下面
Array
(
[0] => Array
(
[REDUNDANT] => NO
[FILE_NAME] => 51894a (2).pdf
)
[1] => Array
(
[REDUNDANT] => YES
[FILE_NAME] => book (2).pdf
)
[2] => Array
(
[REDUNDANT] => YES
[FILE_NAME] => samae (1).pdf
)
[3] => Array
(
[REDUNDANT] => NO
[FILE_NAME] => aswss (1).pdf
)
)
我想删除所有元素array[INDEX][REDUNDANT] == 'YES'
删除数组后,新数组如下所示
Array
(
[0] => Array
(
[REDUNDANT] => NO
[FILE_NAME] => 51894a (2).pdf
)
[1] => Array
(
[REDUNDANT] => NO
[FILE_NAME] => aswss (1).pdf
)
)
请帮我找到解决方案谢谢