<?php class Test { const COUNTRY_TEST = 'ABC'; public function Test($var = 'TEST') { echo constant('self::COUNTRY_'. $var); } } $test = new Test();
You have javascript disabled. You will not be able to edit any code.