diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index 992e271eca..87042f83fe 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -1,5 +1,5 @@ - + The Basics @@ -122,6 +122,30 @@ EOD; Functions. + + + Unlike heredocs, nowdocs can be used in any static data context. + + Static data example + + +]]> + + + + + + Nowdoc support was added in PHP 5.3.0. + + diff --git a/language/oop5/constants.xml b/language/oop5/constants.xml index 36f549f6dd..1a4f3fb3e5 100644 --- a/language/oop5/constants.xml +++ b/language/oop5/constants.xml @@ -1,5 +1,5 @@ - + Class Constants @@ -45,7 +45,32 @@ echo $class::constant."\n"; // As of PHP 5.3.0 ]]> + + + Static data example + + +]]> + + + Unlike heredocs, nowdocs can be used in any static data context. + + + + + Nowdoc support was added in PHP 5.3.0. + + +