在PHP中,您可以将类扩展为相同的名称?(In PHP can you extend a class to the same name?)
我试图找出我可以做或不做的天气。 我有一个叫Template的类。 我想在另一个文件中扩展这个类的功能,但我不想改变它的名字。
我是否将其声明为
class template extends template { // code here function foo() { } }或者我只是像这样宣布它?
class template { // write function function foo() { } }I'm trying to find out weather I can do this or not. I have a class called Template. and I want to extend that classes functionality in another file, but I don't want to change the name.
Do I declare it as
class template extends template { // code here function foo() { } }or do I just declare it like this?
class template { // write function function foo() { } }最满意答案
你可能想看看classkit
You might want to check out classkit
更多推荐
发布评论