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? 回答1: Namespaces are not supported prior to 5.3. There isn't really a way to adapt for them into 5.2 unfortunately. 回答2: Namespaces are only available as of 5.3 At least in the case of classes, you