0
我想知道,我可以動態地導入特徵並應用到父類。php導入特徵裏面的類
trait A{
function a(){}
}
class B{
//use A <-no import here
function b(){
//Define if need trait A
// Import A and apply to B <- Possible?
}
}
非常感謝您的建議!