From 8d41f6f31506544d4e1befdaaed54dac91f0e288 Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Thu, 17 Jan 2008 19:06:08 +0000 Subject: [PATCH] Fix #43881 (Specify the version in the example) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@250808 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/constants.xml | 4 ++-- language/oop5/paamayim-nekudotayim.xml | 6 +++--- language/oop5/static.xml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/language/oop5/constants.xml b/language/oop5/constants.xml index c13cd50668..1c102afc80 100644 --- a/language/oop5/constants.xml +++ b/language/oop5/constants.xml @@ -1,5 +1,5 @@ - + Class Constants @@ -35,7 +35,7 @@ class MyClass echo MyClass::constant . "\n"; $classname = "MyClass"; -echo $classname::constant . "\n"; +echo $classname::constant . "\n"; // As of PHP 5.3.0 $class = new MyClass(); $class->showConstant(); diff --git a/language/oop5/paamayim-nekudotayim.xml b/language/oop5/paamayim-nekudotayim.xml index 38c57a887d..6ff87fd89b 100644 --- a/language/oop5/paamayim-nekudotayim.xml +++ b/language/oop5/paamayim-nekudotayim.xml @@ -1,5 +1,5 @@ - + Scope Resolution Operator (::) @@ -39,7 +39,7 @@ class MyClass { } $classname = 'MyClass'; -echo $classname::CONST_VALUE; +echo $classname::CONST_VALUE; // As of PHP 5.3.0 echo MyClass::CONST_VALUE; ?> @@ -68,7 +68,7 @@ class OtherClass extends MyClass } $classname = 'OtherClass'; -echo $classname::doubleColon(); +echo $classname::doubleColon(); // As of PHP 5.3.0 OtherClass::doubleColon(); ?> diff --git a/language/oop5/static.xml b/language/oop5/static.xml index b3680500a8..3740abf858 100644 --- a/language/oop5/static.xml +++ b/language/oop5/static.xml @@ -1,5 +1,5 @@ - + Static Keyword @@ -68,7 +68,7 @@ print $foo->my_static . "\n"; // Undefined "Property" my_static print $foo::$my_static . "\n"; $classname = 'Foo'; -print $classname::$my_static . "\n"; +print $classname::$my_static . "\n"; // As of PHP 5.3.0 print Bar::$my_static . "\n"; $bar = new Bar(); @@ -91,7 +91,7 @@ class Foo { Foo::aStaticMethod(); $classname = 'Foo'; -$classname::aStaticMethod(); +$classname::aStaticMethod(); // As of PHP 5.3.0 ?> ]]>