Could anyone tell me why my character stats will not print? I'm not getting any error or syntax messages..
This is my first php project ever. I can't figure out what I'm missing!
<?  
    class character{
        public $healthpoints = 100;
        public $isdead = false;
        public $class = "Mage";
        public $level = 10;
    }
    function checkdeath() {
    if($healthpoints >= 0){
        $isdead = true;
        }   
    }
    new character();
    function CharStats() {
        echo $healthpoints;
        echo $isdead;
        echo $class;
        echo $level;
    }
    CharStats;
    ?>
 
    