Reassigning properties with method PHP
<p>I am simply trying to reassign the value of a property within a method of the same class. Now, while I admit I am knew to php, this just seems like it should work. I have tested out this method on some simpler code, and it does in fact work. By 'this method', I simply mean doing this:</p>

<pre><code>$this-&gt;property_name = 'new_value';
</code></pre>

<p>In the below code, when the 'check_time' method is run, it should reassign the class_checker->time_available property to 'TRUE'; Now, I know the code is being run because I put <code>echo 'jjjjjjjj'</code> inside the block. Yet, the property is still not being changed. Any ideas at all?</p>

<pre><code> class class_checker 

{ 
        public $time_available = 'FALSE';
        public $campus_available = 'FALSE';
        public $teacher_available = 'FALSE';

      public function check_time(&amp;$table_row, $time) 
      { 
                $start_time_start = &amp;$table_row-&gt;getElementsByTagName('td')-&gt;item(6)-&gt;nodeValue;
                preg_match_all('/[0-9]*[0-9]:[0-9][0-9]/', $start_time_start, $matches);
                if (isset($matches[0][0])) {
                    $start_time = $matches[0][0];
                    $find_time = $time;
                    if ($find_time == $start_time) {
                        echo 'jjjjjjjjjjjj';
                         $this-&gt;time_available = 'TRUE';
                    } 
                } 

      } 
}
</code></pre>
