php get object keys

Solutions on MaxInterview for php get object keys by the best coders in the world

showing results for - "php get object keys"
Alyshialynn
12 Sep 2016
1
2<?php
3
4class foo {
5    private $a;
6    public $b 1;
7    public $c;
8    private $d;
9    static $e;
10   
11    public function test({
12        var_dump(get_object_vars($this));
13    }
14}
15
16$test new foo;
17var_dump(get_object_vars($test));
18
19$test->test();
20
21?>
22
23