10
I realized that PHP returns that a variable has not been started if it has no value assigned to it. In my opinion, it makes no sense because the variable has already been started and awaits a value.
Example:
class Users {
public $username;
public function __construct() {
if(isset($this->username))
echo 'variável foi iniciada';
else
echo 'variável não foi iniciada';
}
}
Why does that happen?