<?php class Foo { const BAR = 'hi'; } $constant = 'BAR'; echo constant('FOO::'.$constant);
You have javascript disabled. You will not be able to edit any code.