-
-
- $v = new test();
- print_r($v);
- var_dump($v);
- class test {
- public $num = 1;
- public $str = "222 ";
- public $bln = true;
- function test() {
- global $num;
- }
- }
-
Copy the code
The result is:
test object
(
[num] => 1
[str] => 222
[bool] => 1
)
object(test)#1 (3) {
["num"]=>
int(1)
["str"]=>
string(3) "222"
["bool"]=>
bool(true)
}
|