<?php class DiceGame { public $gameRounds = 0; public $aiPoints=0; public $playerPoints=0; } $game = new DiceGame; echo $game->$playerPoints;
Standard input is empty
Standard output is empty
PHP Notice: Undefined variable: playerPoints in /home/NWmTQU/prog.php on line 15 PHP Fatal error: Cannot access empty property in /home/NWmTQU/prog.php on line 15