PHP to Use Backslash as Namespace Separator
After much debate, the minds behind PHP have made an important decision. The good news is, PHP will support namespaces. The (arguably) bad news is, the namespace separator will be the backslash character.
Here's a simple example of what this will look like:
PHP 5 already already has its criticisms. The developers looked at many different options, including **, ^^, %%, :>, :) and :::, but eventually decided on \, which is an odd decision, given that it doesn't remotely resemble its cousins. In fact, it most closely resembles directories in MS-DOS or other Windows features.
The argument was also made that current operators such as :: or -> could have been used, but they already had other duties. The argument doesn't go far, however, because PHP of course uses the backslash character for escaping.
I agree, back slash is probably the LAST thing I would have used.
I mean it’s already used all over the place. Escaping characters, path on windows files, continuing lines of code, etc.
But in the grand scheme of things, it doesn’t much matter.
It’ll just work, people will get used to it, it probably won’t really cause any major issues with anyone, and so it doesn’t really impact much.
hi,
have a look here too
http://bytes.com/groups/php/3000-text-box-value-backslash-php-variable