Should'nt this work? Currently it reports an error about a undefined constant.

<?
class Test {
    const FOO = 100;
    var $bar = FOO;
}

$Test = new Test;
echo $Test->bar;
?>

Ciao,
Arjen

Reply via email to