Php Difference between compile time and run time polymorphism
In case of php, what is 开发者_开发知识库the difference between runtime and compile time polymorphism
In php there is no such thing as compile-time polymorphism.
Compile-time polymorphism means that a function acts differently depending on type information that was known at compile-time. Since php is dynamically typed, it can't make any decisions based on types statically, so there can't be any kind of compile-time polymorphism.
精彩评论