title: PHP Class; Notice: Undefined property error
body: <p>before I ask my question, I would like to say that I searched for this question, and none of the other answers helped...</p>
  
  <p>Basically, in my class <code>DemoClass</code>, I have 4 functions, and all of them are "undefined properties"</p>
  
  <p>My error:</p>
  
  <blockquote>
    <p>Notice: Undefined property: DemoClass::$function in /home/content/92/10270192/html/class.php on line 46</p>
  </blockquote>
  
  <p>Note: line 46 is where i do $demoClass->function...</p>
  
  <p>I have a typical class setup:</p>
  
  <pre><code>class DemoClass {
      public function __construct () {
          // stuff that works and gets called
      }
      public function testFunct () {
          // one that is an "undefined property"
      }
  }
  </code></pre>
  
  <p>I access the class as normal:</p>
  
  <pre><code>$testClass = new DemoClass();
  var_dump(testClass-&gt;testFunct); // this is what is on line 46
  // ^^^ This also gives me NULL, because its undefined (? i guess...)
  </code></pre>
  
  <p>I've never had this problem before, any suggestions?  Thanks!</p>