Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class A {
- private $plop;
- function __construct() {
- $this->plop = 'something private';
- }
- static function test() {
- $f = new A();
- print_r(get_object_vars($f));
- print_r(call_user_func('get_object_vars', $f));
- }
- }
- $a = new A();
- $a->test();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement