Can I dynamically set typed properties in PHP?

后端 未结 0 1739
孤独总比滥情好
孤独总比滥情好 2021-02-04 11:59

I was wondering if since we have typed properties in PHP 7.4 I could do something like $this->string({$key}) = \'test\'; to store field typed as string sth like this -> pu

相关标签:
回答
  • 消灭零回复
提交回复
热议问题