kvn
programmer
Zend Engine News
About ZE2 & etc..
Во че нарыл:Zend Engine News
Goodbye Nested Classes, Hello namespaces
The list was taken by surprise when Stanislav Malyshev committed this unexpected change; PHP 5 now implements a real namespace model, rather than a hack using nested classes. The key features of namespaces are: The new "namespace" element will be able to contain classes, functions, variables and constants.
There will be only one level of namespaces (so they cannot nest). Namespaces may include a single colon character, so that you get the same psychological effect as having real nested namespaces.
Examples of valid names are 'PEAR', 'PEARB' and 'PEARB:MySQL'. The colon character does not imply any special relationship between these namespaces.
Code within a namespace element will resolve symbols within that namespace before checking at the global scope. You can modify the symbol resolution by using the "import" keyword. In order to use symbols from the PEARB namespace without prefixing them with PEARB, you would use something like this: "import * from PEARB;"
Вот такие вот пироги..
Source: http://php-mag.net/itr/online_artikel/show.php3?id=324&nodeid=114
About ZE2 & etc..
Во че нарыл:Zend Engine News
Goodbye Nested Classes, Hello namespaces
The list was taken by surprise when Stanislav Malyshev committed this unexpected change; PHP 5 now implements a real namespace model, rather than a hack using nested classes. The key features of namespaces are: The new "namespace" element will be able to contain classes, functions, variables and constants.
There will be only one level of namespaces (so they cannot nest). Namespaces may include a single colon character, so that you get the same psychological effect as having real nested namespaces.
Examples of valid names are 'PEAR', 'PEARB' and 'PEARB:MySQL'. The colon character does not imply any special relationship between these namespaces.
Code within a namespace element will resolve symbols within that namespace before checking at the global scope. You can modify the symbol resolution by using the "import" keyword. In order to use symbols from the PEARB namespace without prefixing them with PEARB, you would use something like this: "import * from PEARB;"
Вот такие вот пироги..
Source: http://php-mag.net/itr/online_artikel/show.php3?id=324&nodeid=114