<?php class test { const PRODUCTION = 20; public static $environment = 10; } test::$environment = constant('test::'.strtoupper('production')); echo (test::$environment);
You have javascript disabled. You will not be able to edit any code.