title: how to check file extensions with an array
body: <p>I want to check if an extension is part of an array:
  So: if an extension is not part of a forbidden array; do something is allowed</p>
  
  <pre><code> $ext = $path_info['extension'];
  
   $ForbiddenExts = array("php", "html", "htm");
   if( $ext != in_array($ForbiddenExts)){
   // do something allowed
  </code></pre>