title: array_slice by two associative indexes
body: <p>what is the simplest way to get an array slice between two associative keys in PHP?</p>
  
  <p>for example, for the array</p>
  
  <pre><code>$arr = array('2012-02-01'=&gt; 'bla blah',
  '2012-02-02'=&gt; 'bla blah',
  '2013-02-03'=&gt; 'bla blah',
  '2012-02-04'=&gt; 'bla blah',
  '2012-02-05'=&gt; 'bla blah',
  '2010-03-06'=&gt; 'bla blah',
  '2012-04-07'=&gt; 'bla blah',
  '2012-01-08'=&gt; 'bla blah',
  '2012-02-09'=&gt; 'bla blah',
  '2012-10-10'=&gt; 'bla blah',
  '2012-12-03'=&gt; 'bla blah');
  </code></pre>
  
  <p>How can one get a slice of everything between key: '2012-02-04' and key '2012-04-07'
  which would be:</p>
  
  <pre><code>array('2012-02-04'=&gt; 'bla blah',
  '2012-02-05'=&gt; 'bla blah',
  '2010-03-06'=&gt; 'bla blah',
  '2012-04-07'=&gt; 'bla blah')
  </code></pre>