PHP supports this:
$z = 5;
$str = "z is $z"; // result: "z is 5"
and it supports this:
$c = new StdClass();
$c->x = 9;
$str = "x is {$c->x}"; // result: "x is 9"
but it does NOT support this:
class abc
{
const n = 2;
}
$str = "x is {abc::n}"; // result: "x is {abc::n}"
Why does PHP not support insertion of consts via the curly-brace syntax? Seems like it should...