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

后端 未结 11 512
情歌与酒
情歌与酒 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 02:14

    get_class_vars is not same as get_object_vars.

    I think get_clas_vars should return the original property values.

提交回复
热议问题