Contact: aviboots(AT)netvision.net.il
39,855 questions
51,776 answers
573 users
class Test { private int $x = 1000; // Explicitly specifying the type public function getX(): int { return $this->x; } } $T = new Test(); echo $T->getX(); /* run: 43 */