Help from me is always guaranteed!*
VB.NET code is made up on the spot with VS2008 Professional with .NET 3.5. Everything else is just made up on the spot.
Please Remember to rate posts, use code tags, send me money and all the other things listed in the "Before you post" posts.
Are you sure there isn't an accidental white-space before the PHP declaration? Remember that namespaces must be declared before output within a script.
Also...Have you tried it with actual content in the namespace?
@javajawa You are declaring your namespace as you would a class.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Newer versions of PHP allow for that form of namespace declaration. It's useful for keeping track of where you want namespaces to end (so you can remember to re-open the global namespace, something I always forget otherwise) PHP Manual Entry
Help from me is always guaranteed!*
VB.NET code is made up on the spot with VS2008 Professional with .NET 3.5. Everything else is just made up on the spot.
Please Remember to rate posts, use code tags, send me money and all the other things listed in the "Before you post" posts.
Namespaces are available in PHP as of PHP 5.3.0.
[Source: PHP Manual]
Help from me is always guaranteed!*
VB.NET code is made up on the spot with VS2008 Professional with .NET 3.5. Everything else is just made up on the spot.
Please Remember to rate posts, use code tags, send me money and all the other things listed in the "Before you post" posts.
Bookmarks