Good day guys! I have encounter some problem. I want to delete all the data from the array but doesn't delete that 1 data based from value.
example:
key = '2' 
array = [ 
         'data1': 'foo',
         'data' : 
                 {
                  'id' : '1', 
                  'id' : '2', 
                  'id' : '3'
                 }
         ]
result = [
          'data1': 'foo',
          'data' : 
                  {
                   'id' : '2'
                  }
         ]
that's all thank you
 
     
    