<? class Student { function __get($property) { return $this -> $porperties[$property]; } function __set($property, $value){ $this -> $porperties[$property] = "Autoset {$property} jako:".$value; } } $st = new Student(); $st -> name = "Kamil"; $st -> roll = 16 ; ?>
Uczę się obiektówki i nie wiem gdzie mam błąd . Nie mogę wyświetlić właściwości
