in my class i have some properties. i want some values of these to have another property. but i noticed it wasnt possible.
code:
$property = "my name is: $this->name";
generated an error.
i set the $this->name with the constructor.
could you somehow accomplish this? i would like the "my name is: " to be defined in the property and not in the constructor if its possible.
thanks.