reference/reflection/reflectionproperty/construct.xml
c1aba02c4753e56b4ab5053a0ab5be8584cbf8bc
...
...
@@ -55,6 +55,7 @@
55
55
<programlisting role="php">
56
56
<![CDATA[
57
57
<?php
58
+

58
59
class Str
59
60
{
60
61
public $length = 5;
...
...
@@ -73,7 +74,7 @@ printf(
73
74
$prop->isStatic() ? ' static' : '',
74
75
$prop->getName(),
75
76
$prop->isDefault() ? 'declared at compile-time' : 'created at run-time',
76
-
var_export(Reflection::getModifierNames($prop->getModifiers()), 1)
77
+
var_export(Reflection::getModifierNames($prop->getModifiers()), true)
77
78
);
78
79

79
80
// Create an instance of Str
...
...
@@ -90,6 +91,7 @@ var_dump($prop->getValue($obj));
90
91

91
92
// Dump object
92
93
var_dump($obj);
94
+

93
95
?>
94
96
]]>
95
97
</programlisting>
...
...
@@ -115,7 +117,8 @@ object(Str)#2 (1) {
115
117
<![CDATA[
116
118
<?php
117
119

118
-
class Foo {
120
+
class Foo
121
+
{
119
122
public $x = 1;
120
123
protected $y = 2;
121
124
private $z = 3;
122
125