title: $_FILES super global variable
body: <p>why doesn't the unset function remove $_FILES contents or empty it after uploading a file .
  how can I empty my $FILES variable after uploading a file .</p>
  <pre><code>&lt;html&gt;
      &lt;head&gt;
              &lt;title&gt;Files Upload&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
              &lt;form action=&quot;&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
                  &lt;input type=&quot;file&quot; name=&quot;pdf&quot; id=&quot;pdf&quot;&gt;&lt;br&gt;
                  &lt;input type=&quot;submit&quot; name=&quot;sumbit&quot; value=&quot;upload&quot;&gt;
              &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  &lt;?php
  unset($GLOBALS['$_FILES']);
  echo &quot;&lt;pre&gt;&quot;;
  var_dump($_FILES);
  echo &quot;&lt;/pre&gt;&quot;;
  ?&gt;
  
  The Output is :
  array(1) {
    [&quot;pdf&quot;]=&gt;
    array(5) {
      [&quot;name&quot;]=&gt;
      string(19) &quot;Courses Degrees.pdf&quot;
      [&quot;type&quot;]=&gt;
      string(15) &quot;application/pdf&quot;
      [&quot;tmp_name&quot;]=&gt;
      string(24) &quot;C:\xampp\tmp\php6BBD.tmp&quot;
      [&quot;error&quot;]=&gt;
      int(0)
      [&quot;size&quot;]=&gt;
      int(624129)
    }
  }
  </code></pre>