title: Whats the best way to filter below multidimentional array in PHP
body: <p>I want all the arrays with pubsite_id = 8, whats the optimal way to do it. I can do it using foreach but it seems very expensive when it grows bigger.</p>
  
  <pre><code>array(
    array( "startdate"    =&gt; "2014-02-01",
           "enddate"      =&gt; "2014-02-13",
           "pubsite_id"   =&gt; "1",
           "dfp_order_id" =&gt; "116260016",
           "amount"       =&gt; "-5000.00000",
           "amountperday" =&gt; -384.61538461538
    ),
    array( "startdate"    =&gt; "2014-02-01",
           "enddate"      =&gt; "2014-02-28",
           "pubsite_id"   =&gt; "8",
           "dfp_order_id" =&gt; "116260016",
           "amount"       =&gt; "-700.00000",
           "amountperday" =&gt; -25
    ),
    ...
  )
  </code></pre>