Weird behavior with a class level variable
<p>I've looked at this code for over an hour, and it looks fine to me.  However, the description variable is losing scope when I use the insertSubmit() function.  The variable is set during construction but not when I use the insertSubmit().  Am I missing something here?</p>

<pre><code>&lt;?php session_start();

class SubmitNew {

var $title = "";
var $category = "";
var $summary = "";
var $description = "";  
var $username = "";
var $timestamp = "";
var $errors = "";
var $errorStr = "";
var $link = "";
var $db = "";

public function __construct() {
    $this-&gt;setVariables();
    $this-&gt;errors = 0;
    $this-&gt;p_id = 1;

}
public function setVariables() {
    $this-&gt;title = "1";
    $this-&gt;category = "2";
    $this-&gt;summary = "3";
    $this-&gt;description = "4";
    echo $this-&gt;description;
    $this-&gt;timestamp = mktime(date("G"), date("i"),
    date("s"), date("m") , date("d"), date("Y"));
}
public function errorBlank() {
    if($this-&gt;title == null) {
        $this-&gt;errorStr = $this-&gt;errorStr."blanktitle";
        $this-&gt;errors++;    
    } if($this-&gt;summary == null) {
        $this-&gt;erroStr = $this-&gt;errorStr."blanksummary";
        $this-&gt;errors++;            
    } if($this-&gt;description = null) {
        $this-&gt;erroStr = $this-&gt;errorStr."blankdescription";
        $this-&gt;errors++;    
    }
}
public function errorAll() {
    if($this-&gt;errors == 0) {
        return "success";
    } else {
        return $this-&gt;errorStr; 
    }
}
public function insertSubmit() {
    echo $this-&gt;description;
}   
}
</code></pre>
