title: Pattern Match on a Array Key
body: <p>I need to get the stock values out of this array:</p>
  
  <pre><code>Array ( 
  [stock0] =&gt; 1
  [stockdate0] =&gt; 
  [stock1] =&gt; 3 
  [stockdate1] =&gt; apple 
  [stock2] =&gt; 2 [
  stockdate2] =&gt; 
  ) 
  </code></pre>
  
  <p>I need to pattern match on this array, where the array key = "stock" + 1 wildcard character.
  I have tried using the array filter function to get every other value on the PHP manual but
  the empty values seem to throw it out. I tried alot of different things I found but nothing is working.</p>
  
  <p>Can this be done?</p>