title: How can I quickly delete a value of less than two characters from a large array?
body: <p>I want delete values of less than two characters from a my large array which have 9436065 string values. I deleted with <code>preg_grep()</code> using this code:</p>
  
  <pre><code>function delLess($array, $less)
  {
      return preg_grep('~\A[^qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM]{'.$less.',}\z~u', $array);
  }
  
  $words = array("ӯ","ӯро","ӯт","ғариб","афтода","даст", "ра");
  
  echo "&lt;pre&gt;";
  print_r(delLess($words,2));
  echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>But it works slower. Is it possible to optimize this code?</p>