<?php
class user1{
private $name = 'flynetcn';
private function say(){
echo $this->name;
echo '<br>';
}
public function tosay(){
$this->say();
}
}
class user2 extends user1 {
}
Reflection::export(new ReflectionClass('user2'));
?>
Class [ class user2 extends user1 ] { @@ E:\website\1.php 13-14 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [2] { Method [ private method say ] { @@ E:\website\1.php 4 - 7 } Method [ public method tosay ] { @@ E:\website\1.php 8 - 10 } } }