title: How to filter an array by a part of key?
body: <p>I have an array like this:</p>
  
  <pre><code>Array(
  [id-1] =&gt; N
  [nm-1] =&gt; my_val_01;
  [id-48] =&gt; S
  [nm-48] =&gt; my_val_02;
  [id-52] =&gt; N
  [nm-52] =&gt; my_val_03;
  [id-49] =&gt; N
  [nm-49] =&gt; my_val_04;
  [id-50] =&gt; N
  [nm-50] =&gt; my_val_05;
  }
  </code></pre>
  
  <p>and would like to filter by part of the key. In this case I would like to have all keys that have "id-", and to result in this:</p>
  
  <pre><code>Array(
  [id-1] =&gt; N
  [id-48] =&gt; S
  [id-52] =&gt; N
  [id-49] =&gt; N
  [id-50] =&gt; N
  }
  </code></pre>
  
  <p>Can anyone help?</p>