Im rewriting application from .NET to PHP. I need to create class like this:
class myClass { public ${\'property-name-with-minus-signs\'} = 5; public
I used code like this:
class myClass { function __construct() { // i had to initialize class with some default values $this->{'fvalue-string'} = ''; $this->{'fvalue-int'} = 0; $this->{'fvalue-float'} = 0; $this->{'fvalue-image'} = 0; $this->{'fvalue-datetime'} = 0; } }