Question: I'm trying to access a class constant in one of my classes:

```
const MY_CONST = "value";

```

If I have a variable which holds the name of this constant like this:

```
$myVar = "MY_CONST";

```

Can I access the value of MY\_CONST somehow?

```
self::$myVar

```

does not work obviously because it is for static properties.
Variable variables does not work either.

Answer: 
There is no syntax for that, but you can use an explicit lookup:

```
print constant("classname::$myConst");

```

I believe it also works with `self::`.
have you tried 

```
$myVar = MY_CONST or $myVar = $MY_CONST

```