title: checking,if a string of an array of strings is available in a string
body: <p>all string functions(preg_match,strpos...) in php I know allow me to find a string in a string. My intention is to find a string of an array of strings in a string like this:</p>
  
  <pre><code>         $pattern = array("jpg", "bmp");
           $subject = $bild-&gt;dateiname;
  </code></pre>
  
  <p>Any ideas,how to implemnet my intention using php-function(s)?</p>