我有這樣的多維數組:在多維數組與匹配PHP刪除元素
[0] => Array
(
[id] => 55829
[date] => 2014-09-05 07:00:56
[customer] => Engineering
[server] => example
[status] => Successful
[version] => 1
)
[1] => Array
(
[id] => 55776
[date] => 2014-09-05 06:58:30
[customer] => Coating
[server] => example
[status] => Successful
[version] => 1
)
我想通過數組,如果第二級「客戶」值這個陣列中的值相匹配才能夠循環:
Array
(
[0] => Engineering
[1] => Painting
)
然後我要完全刪除/取消設置父陣列,如果有一個匹配,使得第一陣列然後將:
[0] => Array
(
[id] => 55776
[date] => 2014-09-05 06:58:30
[customer] => Coating
[server] => example
[status] => Successful
[version] => 1
)
拍攝,您可以通過12秒打我。有一個upvote。 ;) – bzeaman 2014-09-05 10:35:01
非常感謝喲!作品一種享受! :) – MikeeeGeee 2014-09-05 10:40:57