Constant Scope PHP5
| From: | Arjen Brouwer | Date: | Fri, 22 Aug 2003 11:35:01 +0000 |
| Subject: | Constant Scope PHP5 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-4127@lists.php.net to get a copy of this message | ||
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