Search code examples
phpnamespacesphp-5.2

Namespaces in php 5.2


I've done little web using namespaces. I have it in my computer and i'm about to moving it to free hosting that uses php 5.2. Syntax highlighter for php 5.2 interprets them as errors.

Are namespaces supported by php 5.2?

If not is there any way how to use them with little changes to existing code?


Solution

  • Namespaces are not supported prior to 5.3. There isn't really a way to adapt for them into 5.2 unfortunately.