Getting static property from a class with dynamic class name in PHP

后端 未结 11 499
情歌与酒
情歌与酒 2020-11-30 01:44

I have this:

  • one string variable which holds the class name ($classname)
  • one string variable with holds the property name ($propert
11条回答
  •  一生所求
    2020-11-30 02:05

    Potentially relevant: discussion on late static binding in PHP - When would you need to use late static binding?.

提交回复
热议问题