title: How I can delete words if word have this letters
body: <p>I must delete words if in word have letters <strong>"ц", "щ", "ы", "ь"</strong>. I create this functions for need me but it works slow.</p>
  
  <pre><code>public function CheckToInsert($text)
  {
  
   $xarfho = array("ц", "щ", "ы", "ь","қ","ӣ","ғ","ҷ","ҳ","ӯ","Қ","Ӣ","Ғ","Ҷ","Ҳ","Ӯ");
  
   foreach ($xarfho as $xarf) 
   {
       if (stripos($text,$xarf) !== false) 
       {
           return true;
       }
   }
  
  
  
   return false;
  
  }
  
  public function UnsetUncorrectWords($words)
  {
      foreach ($words as $key =&gt; $value) 
      {
          if($this-&gt;CheckToInsert($value) == false) unset($words[$key]);
          if(strlen($value) &lt; 3) unset($words[$key]);
      }
  
      return $words;
  }
  </code></pre>