title: Remove element from array if contains some string/symbol
body: <p>I have an array containing some words and I want to remove the words that contain either a . (fullstop) or ; (semicolon) or some other symbols. I have read the solution on [ <a href="https://stackoverflow.com/questions/9993168/remove-item-from-array-if-item-value-contains-searched-string-character">Remove item from array if item value contains searched string character</a> ] but this doesn't seem to answer my problem. </p>
  
  <p>What can I add to this code to remove also the words containing the other symbols other than semicolon?</p>
  
  <pre><code>function myFilter($string) {
    return strpos($string, ';') === false;
  }
  
  $newArray = array_filter($array, 'myFilter');
  </code></pre>
  
  <p>Thanks</p>