summaryrefslogtreecommitdiff
path: root/Zend/ZEND_CHANGES
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2002-03-08 11:36:56 +0000
committerSebastian Bergmann <sebastian@php.net>2002-03-08 11:36:56 +0000
commit2f010abe517ee5028bb73b61e8ce73da572d69cd (patch)
tree4a6d53f24aa6a44bdf9d19235e38348f6328dee6 /Zend/ZEND_CHANGES
parent27242a7a462940d90fd685a0f67de7da331b4447 (diff)
downloadphp-git-2f010abe517ee5028bb73b61e8ce73da572d69cd.tar.gz
Add 'import const' example.
Diffstat (limited to 'Zend/ZEND_CHANGES')
-rw-r--r--Zend/ZEND_CHANGES11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES
index 7e2d90cbbc..ffc4149f34 100644
--- a/Zend/ZEND_CHANGES
+++ b/Zend/ZEND_CHANGES
@@ -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.