Contact: aviboots(AT)netvision.net.il
41,551 questions
54,154 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 */