See how bad it is? You THINK he means that but you can't be sure! You shouldn't have to guess what a person wants. It doesn't help him and annoys us!
i not guess , i just look at the code and seen the array and he write how can he do this right Besides , what else can be done with an array in which an player you tell him to learn php when what that he asked is php
You should try PHP: $this->top[$player->getName()] = 20; is that what you want? it basically makes a variable public There is also this method PHP: public $top = [];$this->top[$player->getName()] = 20;echo($this->top[$player->getName()]); // 20