title: "Fatal error: Cannot redeclare <function>"
body: <p>I have a function(this is exactly how it appears, from the top of my file):</p>
  
  <pre><code>&lt;?php
  //dirname(getcwd());
  function generate_salt()
  {
      $salt = '';
  
      for($i = 0; $i &lt; 19; $i++)
      {
          $salt .= chr(rand(35, 126));
      }
  
      return $salt;
  }
  ...
  </code></pre>
  
  <p>And for some reason, I keep getting the error:</p>
  
  <blockquote>
    <p>Fatal error: Cannot redeclare
    generate_salt() (previously declared
    in
    /Applications/MAMP/htdocs/question-air/includes/functions.php:5)
    in
    /Applications/MAMP/htdocs/question-air/includes/functions.php
    on line 13</p>
  </blockquote>
  
  <p>I cannot figure out why or how such an error could occur. Any ideas?</p>