title: PHP Fatal error: Call to undefined function when function is defined
body: <p>I am getting an error in PHP:</p>
  
  <pre><code>PHP Fatal error:  Call to undefined function getCookie
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>include('Core/dAmnPHP.php');
  $tokenarray = getCookie($username, $password);
  </code></pre>
  
  <p>Inside of dAmnPHP.php, it includes a function called getCookie inside class dAmnPHP.  When I run my script it tells me that the function is undefined.</p>
  
  <p>What am I doing wrong?</p>