]> granicus.if.org Git - php/commitdiff
Add 'import const' example.
authorSebastian Bergmann <sebastian@php.net>
Fri, 8 Mar 2002 11:36:56 +0000 (11:36 +0000)
committerSebastian Bergmann <sebastian@php.net>
Fri, 8 Mar 2002 11:36:56 +0000 (11:36 +0000)
Zend/ZEND_CHANGES

index 7e2d90cbbcc73142cef833723fc2fcc6d0842111..ffc4149f34f19babbbeb857d954af244813a2a13 100644 (file)
@@ -301,6 +301,17 @@ Changes in the Zend Engine 2.0
             func2();
             ?>
 
+          Example:
+
+            <?php
+            class MyOuterClass {
+              const Hello = "Hello, World\n";
+            }
+            
+            import const Hello from MyOuterClass;
+            print Hello;
+            ?>
+
       Old code that does not take advantage of namespaces will run
       without modifications.