<?php class A { const test = 'test'; } $b = 'test'; $comp = "A::{$b}"; var_dump($comp, constant($comp));
You have javascript disabled. You will not be able to edit any code.