title: Filter array for values starting with custom selected character
body: <p>I have a quickie :)</p>
  
  <p>I have null-based array consisting of string values:</p>
  
  <pre><code>array
    0 =&gt; string 'Message 1' (length=9)
    1 =&gt; string '%company' (length=8)
    2 =&gt; string 'Message 2' (length=9)
    3 =&gt; string '%name' (length=5)
  </code></pre>
  
  <p>I need to pick all values starting with <code>%</code> and ideally put them into another array.</p>
  
  <pre><code>array
    0 =&gt; string 'Message 1' (length=9)
    1 =&gt; string 'Message 2' (length=9)
  
  array
    0 =&gt; string '%company' (length=8)
    1 =&gt; string '%name' (length=5)
  </code></pre>
  
  <p>Thank you!</p>
  
  <p>For anyone interested, the first array is result of validation function, and since I hate, when validator return information about required inputs in million lines (like: this is required <code>&lt;br&gt;&lt;br&gt;</code> that is required...), instead of outputting real messages, I output names of required and unfilled inputs, to be put into nice one message 'Fields this, that and even that are mandatory' :)</p>
  
  <p>Miniedit: will be grateful even for links for questions with answers on stackoverflow :)</p>