Skip to content

Commit 49ef347

Browse files
ADmadGirgias
authored andcommitted
Change print to echo
1 parent a16ad38 commit 49ef347

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

reference/reflection/reflectionproperty/getrawvalue.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ $rClass = new \ReflectionClass(Example::class);
6767
$rProp = $rClass->getProperty('tag');
6868
6969
// These would go through the get hook, so would produce "php".
70-
print $example->tag;
71-
print "\n";
72-
print $rProp->getValue($example);
73-
print "\n";
70+
echo $example->tag;
71+
echo "\n";
72+
echo $rProp->getValue($example);
73+
echo "\n";
7474
7575
// But this would bypass the hook and produce "PHP".
76-
print $rProp->getRawValue($example);
76+
echo $rProp->getRawValue($example);
7777
?>
7878
]]>
7979
</programlisting>

reference/reflection/reflectionproperty/setrawvalue.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ $rProp = $rClass->getProperty('age');
8282
try {
8383
$example->age = -2;
8484
} catch (InvalidArgumentException) {
85-
print "InvalidArgumentException for setting property to -2\n";
85+
echo "InvalidArgumentException for setting property to -2\n";
8686
}
8787
try {
8888
$rProp->setValue($example, -2);
8989
} catch (InvalidArgumentException) {
90-
print "InvalidArgumentException for using ReflectionProperty::setValue() with -2\n";
90+
echo "InvalidArgumentException for using ReflectionProperty::setValue() with -2\n";
9191
}
9292
9393
// But this would set the $age to -2 without error.
9494
$rProp->setRawValue($example, -2);
95-
print $example->age;
95+
echo $example->age;
9696
?>
9797
]]>
9898
</programlisting>

0 commit comments

Comments
 (0)