From 4bc17b3724a861301931dfedac738f7af262e097 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 18 Apr 2008 19:22:12 +0000 Subject: [PATCH] - Added example using nowdocs git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@257841 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/basic.xml | 26 +++++++++++++++++++++++++- language/oop5/constants.xml | 27 ++++++++++++++++++++++++++- 2 files changed, 51 insertions(+), 2 deletions(-) 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. + + +