Why is isset() returning FALSE for a boolean variable that is set and is TRUE?

kingofgames

New Member
I have spent the last 20 minutes trying to work out the cause for this issue. Firstly I will do\[code\]$this->is_csu = TRUE;\[/code\]In a separate class I call isset, isset returns FALSE, if I immediately echo the variable it will return TRUE.\[code\]echo var_dump(isset($this->is_csu));echo var_dump($this->is_csu);die();\[/code\]Results in an output of\[code\]bool(false) bool(true)\[/code\]I'm sure there is some technical reason to why this is happening, but it is beyond me right now.Hopefully someone can shed some light on this.
 
Back
Top