diff --git a/reference/reflection/reflectionproperty/getrawvalue.xml b/reference/reflection/reflectionproperty/getrawvalue.xml index a7710c67ce93..d3e0e9d1c62d 100644 --- a/reference/reflection/reflectionproperty/getrawvalue.xml +++ b/reference/reflection/reflectionproperty/getrawvalue.xml @@ -67,13 +67,13 @@ $rClass = new \ReflectionClass(Example::class); $rProp = $rClass->getProperty('tag'); // These would go through the get hook, so would produce "php". -print $example->tag; -print "\n"; -print $rProp->getValue($example); -print "\n"; +echo $example->tag; +echo "\n"; +echo $rProp->getValue($example); +echo "\n"; // But this would bypass the hook and produce "PHP". -print $rProp->getRawValue($example); +echo $rProp->getRawValue($example); ?> ]]> diff --git a/reference/reflection/reflectionproperty/setrawvalue.xml b/reference/reflection/reflectionproperty/setrawvalue.xml index 8254b0d30a1e..39bd29ccc2d6 100644 --- a/reference/reflection/reflectionproperty/setrawvalue.xml +++ b/reference/reflection/reflectionproperty/setrawvalue.xml @@ -82,17 +82,17 @@ $rProp = $rClass->getProperty('age'); try { $example->age = -2; } catch (InvalidArgumentException) { - print "InvalidArgumentException for setting property to -2\n"; + echo "InvalidArgumentException for setting property to -2\n"; } try { $rProp->setValue($example, -2); } catch (InvalidArgumentException) { - print "InvalidArgumentException for using ReflectionProperty::setValue() with -2\n"; + echo "InvalidArgumentException for using ReflectionProperty::setValue() with -2\n"; } // But this would set the $age to -2 without error. $rProp->setRawValue($example, -2); -print $example->age; +echo $example->age; ?> ]]>