title: PHP select array element by ["something_*"]
body: <p>I was wondering about this kind of situation.</p>
  
  <p>What if i have a huge array say about <code>50k</code> items or more.</p>
  
  <p>Now let's say many of that array keys have prefix let's name it <code>settings_</code>, now if i want to select all values where key begins by <code>settings_</code> would i need to loop trough all <code>50k</code> items or is there a better way?</p>
  
  <p>And say there is some "magical" way to do this with single level arrays, what about multidimensional ones?</p>