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-have-a-lot-of-this'} = 5; //tried with "$" and without
}
But it doesnt work. I dont want to use something like this:
$myClass = new stdClass();
$myClass->{'blah-blah'};
Because i have a lot of this in code.
Edit few days later: i was writing application that uses SOAP. These fancy names are used in API which i had to communicate with.