title: PHP: search and remove JSON object
body: <p>I have a quite nested JSON file. How can I delete an array that includes my value? For ex: I want to delete <code>{"customer":"Customer1","date":"2017-06-03"...}</code> from JSON file and I already knew the <strong>"Customer1"</strong></p>
  
  <pre><code>{
              "info": [{
                  "customer": "Customer1",
                  "date": "2017-06-03",
                  "beacons": [{
                      "data1": "1234",
                      "data2": "Test1",
                  }, {
                      "data1": "0088",
                      "data2": "Test2",
                  }]
              },{
                  "customer": "Customer2",
                  "date": "2017-06-03",
                  "beacons": [{
                      "data1": "dcdd4",
                      "data2": "Test3",
                  }, {
                      "data1": "0088",
                      "data2": "Test4",
                  }]
              }]
          }
  </code></pre>
  
  <p>Thanks!</p>