Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何动态获取静态变量?
我正在尝试这个但得到可怕的 PAAMAYIM 错误:
foreach($this->entity::$dialog_data as $property) {
应该导致Company::$dialog_data因为$this->entity包含字符串'Company'。
Company::$dialog_data
$this->entity
'Company'
也许它可以帮助你
$temp = $this->entity; foreach($temp::$dialog_data as $property) {