How to use same named class in PHP without namespacing?
问题 I have a problem, where I have two third party libraries classes that I have to extend and use together. But both have the same naming convention and two class name end up having the same name. Since I cannot extend two classes, I don't know how to fix them, how to create a wrapper against one. I cannot use PHP Namespaces as the PHP version is just 5.2.10 and not 5.3. What options I have? 回答1: I think you can implement rpc like interface, for one class. For other you can extend and use. http: