<?php class Single { var $sTest = 'test'; function get() { return ('$test = '.$this -> sTest); // to jest oczywiście błąd, bo obiekt nie istnieje } } ?>
<?php ?>
Przykład tylko dla ilustracji, proszę nie kopać leżącego

<?php class Single { var $sTest = 'test'; function get() { return ('$test = '.$this -> sTest); // to jest oczywiście błąd, bo obiekt nie istnieje } } ?>
<?php ?>