title: Delete element from multidimensional-array based on value
body: <p>I'm trying to delete elements from a multidimensional-array based on a value. In this case if a sub-array's key 'year' has the value 2011 I want that sub-array out.</p>
  
  <p>Just for the record: i'm running PHP 5.2.</p>
  
  <p>My array looks like this:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [filmId] =&gt; 61359
              [url] =&gt; http://www.moviemeter.nl/film/61359
              [title] =&gt; Unstoppable
              [alternative_title] =&gt; 
              [year] =&gt; 2011
              [thumbnail] =&gt; http://www.moviemeter.nl/images/covers/thumbs/61000/61359.jpg
              [average] =&gt; 0
              [votes_count] =&gt; 0
              [similarity] =&gt; 100.00
              [directors_text] =&gt; geregisseerd door Richard Harrison
              [actors_text] =&gt; met Chen Shilony, Ruben Crow en David Powell
              [genres_text] =&gt; Drama / Komedie
              [duration] =&gt; 90
          )
      [1] =&gt; Array
          (
              [filmId] =&gt; 87923
              [url] =&gt; http://www.moviemeter.nl/film/87923
              [title] =&gt; Unstoppable
              [alternative_title] =&gt; 
              [year] =&gt; 2011
              [thumbnail] =&gt; http://www.moviemeter.nl/images/covers/thumbs/87000/87923.jpg
              [average] =&gt; 0
              [votes_count] =&gt; 0
              [similarity] =&gt; 100.00
              [directors_text] =&gt; geregisseerd door Example Director
              [actors_text] =&gt; met Actor 1, Actor 2 en Actor 3
              [genres_text] =&gt; Drama / Komedie
              [duration] =&gt; 90
          )
      [2] =&gt; Array
          (
              [filmId] =&gt; 68593
              [url] =&gt; http://www.moviemeter.nl/film/68593
              [title] =&gt; Unstoppable
              [alternative_title] =&gt; 
              [year] =&gt; 2010
              [thumbnail] =&gt; http://www.moviemeter.nl/images/covers/thumbs/68000/68593.jpg
              [average] =&gt; 3.3
              [votes_count] =&gt; 191
              [similarity] =&gt; 100.00
              [directors_text] =&gt; geregisseerd door Tony Scott
              [actors_text] =&gt; met Denzel Washington, Chris Pine en Rosario Dawson
              [genres_text] =&gt; Actie / Thriller
              [duration] =&gt; 98
          )
      [3] =&gt; Array
          (
              [filmId] =&gt; 17931
              [url] =&gt; http://www.moviemeter.nl/film/17931
              [title] =&gt; Unstoppable
              [alternative_title] =&gt; Nine Lives
              [year] =&gt; 2004
              [thumbnail] =&gt; http://www.moviemeter.nl/images/covers/thumbs/17000/17931.jpg
              [average] =&gt; 2.64
              [votes_count] =&gt; 237
              [similarity] =&gt; 100.00
              [directors_text] =&gt; geregisseerd door David Carson
              [actors_text] =&gt; met Wesley Snipes, Jacqueline Obradors en Mark Sheppard
              [genres_text] =&gt; Actie / Thriller
              [duration] =&gt; 96
          )
  )
  </code></pre>