title: Remove part of associative array
body: <p>I want to search an associative array and when I find a value, delete that part of the array.</p>
  
  <p>Here is a sample of my array:</p>
  
  <pre><code>    Array
  (
      [0] =&gt; Array
          (
              [id] =&gt; 2918
              [schoolname] =&gt; Albany Medical College
              [AppService] =&gt; 16295C0C51D8318C2
          )
  
      [1] =&gt; Array
          (
              [id] =&gt; 2919
              [schoolname] =&gt; Albert Einstein College of Medicine
              [AppService] =&gt; 16295C0C51D8318C2
          )
  
      [2] =&gt; Array
          (
              [id] =&gt; 2920
              [schoolname] =&gt; Baylor College of Medicine
              [AppService] =&gt; 16295C0C51D8318C2
          )
  }
  </code></pre>
  
  <p>What I want to do is find the value <code>16295C0C51D8318C2</code> in the <code>AppService</code> and then delete that part of the array. So, for example, if that code was to run on the above array, it was empty out the entire array since the logic matches everything in that array. </p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>            foreach($this-&gt;schs_raw as $object) {
                  if($object['AppService'] == "16295C0C51D8318C2") {
                      unset($object);
                  }
          }
  </code></pre>