title: PHP: Cannot redeclare function error?
body: <pre><code>&lt;?php  
  function date($x) {
      $contents = $_FILES['userfile']['tmp_name'];
      $contents = file("$contents");
      $date = $contents[$x][6].$contents[$x][7]
          ."-".$contents[$x][8].$contents[$x][9]
          ."-"."20".$contents[$x][4].$contents[$x][5];
      return $date;
  }
  ?&gt;
  </code></pre>
  
  <p>Fatal error: Cannot redeclare date() in .../includes.php on line 20</p>
  
  <p>I have created several functions with the same exact structure as the one above and they work fine. For some reason this function keeps returning this error. Any suggestions/solutions to this problem would be greatly appreciated! </p>
  
  <p>thx,  </p>