title: remove specific keys from php array with wildcard
body: <p>I am trying to search an array for a specific partial string and remove all the keys containing them. I have tried several things and my PHP-fu is running out here...</p>
  
  <p>The array i am searching (partial but much along these lines) is like this:</p>
  
  <pre><code>Array
  (
      [0] =&gt; /.
      [1] =&gt; /..
      [2] =&gt; /htdocs
      [3] =&gt; /htdocs/.
      [4] =&gt; /htdocs/..
      [5] =&gt; /htdocs/zipper_new.php
      [6] =&gt; /htdocs/bottom.gif
  )
  </code></pre>
  
  <p>I am trying to remove all of the entries containing "/." and "/..". </p>
  
  <p>The long and short of it is i made a script to search for files by file type and tar them, i am trying to add functionality to instead search for all the files and do the same, This part is failing citing the entries containing those strings whether in whole or part.</p>