<?php class Test{ const SOMETHING = 1; } $name = "SOMETHING"; echo constant('Test::'.$name);
You have javascript disabled. You will not be able to edit any code.