Jump to content

Get static variable dynamically


silkfire

Recommended Posts

How do I get a static variable dynamically?

I'm trying this but getting the dreaded PAAMAYIM error:

 

 

foreach($this->entity::$dialog_data as $property) {
 

 

Should result in Company::$dialog_data because $this->entity contains the string 'Company'.

Link to comment
https://forums.phpfreaks.com/topic/276287-get-static-variable-dynamically/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.