Getting object variable using string + variable

后端 未结 3 771
执笔经年
执笔经年 2020-12-31 09:03

I would like to do something like this: echo $myObject->value_$id but I don\'t know proper syntax and I\'m not sure if it is possible.

$id

3条回答
提交回复
热议问题