我有一個對象陣列是這樣的:查找陣列密鑰給定的屬性值
Array
(
[945] => member Object
(
[id] => 13317
[name] => Test 999
[last_name] => Test 999
)
[54] => member Object
(
[id] => 13316
[name] => Manuel
[last_name] => Maria parra
)
[654] => member Object
(
[id] => 13315
[name] => Byron
[last_name] => Castillo
)
[656] => member Object
(
[id] => 13314
[name] => Cesar
[last_name] => Vasquez
)
)
我需要刪除根據屬性值這些對象中的一個。
例如,我想從數組中刪除的對象ID 13316.
有人倒了一個美麗的'array_filter'? * sadface * – erisco 2010-11-12 16:04:58
你是多麼謙虛 – 2012-09-16 21:25:31
花花公子是第一個array_filter參數,而不是最後一個! http://php.net/manual/en/function.array-filter.php – 2012-12-03 09:15:01