是否可以通过多个冒号访问php变量/常量?

I know it is possible to nest arrays or objects and access them like this:

some_array["sub_type1"]["value"]

or

some_object->sub_type1->value

But is it also possible to use some kind of nested constant values and acces them like this?

SOME_CLASS::SUB_TYPE::MORE_SUBTYPES::VALUE

Use class inheritance for your subtypes, and define the constant in the corresponding subtype class definition.

<?php
class Someclass {}
class Someclass_Subtype extends Someclass {}
class Someclass_Subtype_Child extends Someclass_Subtype
{
    const VALUE = 'whatever';
}