diff --git a/language/oop5/magic.xml b/language/oop5/magic.xml index 30f6588608..b8e167de25 100644 --- a/language/oop5/magic.xml +++ b/language/oop5/magic.xml @@ -1,5 +1,5 @@ - + Magic Methods @@ -114,8 +114,11 @@ echo 'text', $class; // __toString not called (concatenation operator used first) echo 'text' . $class; -// __toString not called (casted to string first) +// __toString not called (cast to string first) echo (string) $class; + +// __toString not called (cast to string first) +echo "text $class"; ?> ]]>