title: PHP search item in 2nd level of associative array and delete it
body: <p>I have an associative array:</p>
  
  <pre><code>array(
      '0' =&gt; array(
          'id' =&gt; 1,
          'name' =&gt; 'one'
      ),
      '1' =&gt; array(
          'id' =&gt; 4,
          'name' =&gt; 'two'
      ),
      '2' =&gt; array(
          'id' =&gt; 8,
          'name' =&gt; 'three'
      )
  );
  </code></pre>
  
  <p>where I want to remove an <code>item</code> from the array where its <code>id = 4</code>.</p>
  
  <p><strong>Desired output:</strong></p>
  
  <pre><code>array(
      '0' =&gt; array(
          'id' =&gt; 1,
          'name' =&gt; 'one'
      ),
      '1' =&gt; array(
          'id' =&gt; 8,
          'name' =&gt; 'three'
      )
  );
  </code></pre>
  
  <p><strong>Question:</strong> What function should I use to find that element and remove it from the array?</p>