diff options
author | Sebastian Bergmann <sebastian@php.net> | 2002-03-08 11:36:56 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@php.net> | 2002-03-08 11:36:56 +0000 |
commit | 2f010abe517ee5028bb73b61e8ce73da572d69cd (patch) | |
tree | 4a6d53f24aa6a44bdf9d19235e38348f6328dee6 /Zend/ZEND_CHANGES | |
parent | 27242a7a462940d90fd685a0f67de7da331b4447 (diff) | |
download | php-git-2f010abe517ee5028bb73b61e8ce73da572d69cd.tar.gz |
Add 'import const' example.
Diffstat (limited to 'Zend/ZEND_CHANGES')
-rw-r--r-- | Zend/ZEND_CHANGES | 11 |
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. |