Skip to content

Tag: multidimensional-array

multidimensional array remove item from child array

i have a problem with my multidimensional array. I want to remove some items from child array by $id value. here is my multidimensional example array and selectedIds: and i want to remove from array those items which are not in selectedIds array. so i want to have output: i try to make it with foreach and arr…