PHP: Array removed specifed keys from the array varaible
<p>i have array, array key contain file name and array value will be another array which contain file size,date etc.</p>

<p>in these array list, i want to store only xls and xlsx files alone. need to remove the rest of the extension files.</p>

<p>Is there any predefined function in PHP. </p>

<p>Note: i have constant variable this varaible contain the like VAR_FILE_EXT= "xls, xlsx, csv"</p>

<pre><code>[sample.xls] =&gt; Array (
            [size] =&gt; 3353
            [uid] =&gt; 1012
            [gid] =&gt; 1013
            [permissions] =&gt; 33188
            [atime] =&gt; 1338497357
            [mtime] =&gt; 1338497357
            [type] =&gt; 1
        )

[sample.csv] =&gt; Array (
            [size] =&gt; 3353
            [uid] =&gt; 1012
            [gid] =&gt; 1013
            [permissions] =&gt; 33188
            [atime] =&gt; 1338497357
            [mtime] =&gt; 1338497357
            [type] =&gt; 1
        )

[sample.txt] =&gt; Array (
            [size] =&gt; 3353
            [uid] =&gt; 1012
            [gid] =&gt; 1013
            [permissions] =&gt; 33188
            [atime] =&gt; 1338497357
            [mtime] =&gt; 1338497357
            [type] =&gt; 1
        )
</code></pre>

<p>in this example i want remove only sample.txt array keys and its corresponding values.</p>
