I created a countdown. But it stops every time at "4". PHP: public function setCount() {$this->load = 5;$this->load--;echo $this->load."\n";return $this->load;}
Evry time you run the function, your $load variable is being set to 5 and the being subtracted by one producing the value of 4. Initialize your $load variable before you run this function instead of doing it inside. $this->load = 5; $this->setCount();