
The concept of Namespaces provides a way to help avoid problems with multiple functions, classes, and constants of the same name being defined multiple times. PHP 5.3 borrows much of the syntax and design of Namespaces from other languages â" most notably C++. However, it does deal with Namespaces in a somewhat unique way, which may cause problems for those familiar with Namespaces. This article takes
a close look at PHP V5.3 namespaces, which is one of the most anticipated and the most debated feature in this release of PHP.
Member since:
2006-02-06
It never ceases to amaze me that every time there's a PHP article on OS news, a bunch of people come into the thread who clearly don't like PHP, with the sole intention of bad mouthing it rather than contributing to any useful conversation. It would be nice, if just for once, people stayed on topic.
At first I thought the back slash was a bit ugly, but really it's no different from what some file systems use to separate levels of folders.
Folder\File
Namespace\Function
I think we just need to get used to it.