[0]=>
array {
"id" => 11,
"rule"=> "rule 1"
},
[1]=>
array {
"id" => 40,
"rule"=> "rule 2"
}
[3]=>
array {
"id" => 55,
"rule"=> "rule 3"
}
[4]=>
array {
"id" => 40,
"rule"=> "rule 4"
}
How am I able to unset the elements with id = 40 to get the following array?
[0]=>
array {
"id" => 11,
"rule"=> "rule 1"
},
[1]=>
array {
"id" => 55,
"rule"=> "rule 3"
}
Do I need to do a foreach cycle / array check / unset?
Or is there any php function for it?