Answer the question
In order to leave comments, you need to log in
How to delete an array by value?
There is such nesting of arrays:
Array
(
[0] => Array
(
[id] => 1
[prices] => Array
(
[0] => Array
(
[id] => 1
[myprice] => 50
)
[1] => Array
(
[id] => 2
[myprice] => 1660
)
[2] => Array
(
[id] => 8
[myprice] => 15
)
)
)
[1] => Array
(
[id] => 2
[prices] => Array
(
[0] => Array
(
[id] => 3
[myprice] => 80
)
)
)
)
Answer the question
In order to leave comments, you need to log in
well, you do two foreach and delete by condition, post here at least your "attempts", because it's hard to even imagine what could be wrong here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question