<?php
class example{
private $a = "Это приватное свойство \n";
public function showA(){
echo $this->a;
}
public function alterA($text){
$this->a = $text;
}
}
$test = new example;
$test->showA();
$test->alterA('я изменил приватное свойство');
$test->showA();
PD9waHAKCmNsYXNzIGV4YW1wbGV7CnByaXZhdGUgJGEgPSAi0K3RgtC+INC/0YDQuNCy0LDRgtC90L7QtSDRgdCy0L7QudGB0YLQstC+IFxuIjsKCnB1YmxpYyBmdW5jdGlvbiBzaG93QSgpewoJZWNobyAkdGhpcy0+YTsKfQoKcHVibGljIGZ1bmN0aW9uIGFsdGVyQSgkdGV4dCl7CgkkdGhpcy0+YSA9ICR0ZXh0Owp9Cgp9CgokdGVzdCA9IG5ldyBleGFtcGxlOwokdGVzdC0+c2hvd0EoKTsKJHRlc3QtPmFsdGVyQSgn0Y8g0LjQt9C80LXQvdC40Lsg0L/RgNC40LLQsNGC0L3QvtC1INGB0LLQvtC50YHRgtCy0L4nKTsKJHRlc3QtPnNob3dBKCk7