I have a function in a class with this code:
$this -> userDb;
$error = $this -> error;
print_r($error);
userDb is another function in this class and error is generated by userDb. It always gives a non-empty array.
Why wouldn't I be able to get the value of $this -> error?