- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
- Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/7HtqL on line 10
Process exited with code 255.
<?php
class Test
{
const COUNTRY_TEST = 'ABC';
public function Test($var = 'test')
{
${COUNTRY_."$var"}
echo self::COUNTRY_$var;
}
}
$test = new Test();