RE: [PHP] Constants
| From: | Jay Blanchard | Date: | Tue, 23 Mar 2004 13:45:35 +0000 |
| Subject: | RE: [PHP] Constants | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181253@lists.php.net to get a copy of this message | ||
[snip]
Not too fast.....
From http://www.php.net/zend-engine-2.php
PHP 5 introduces per-class constants:
<?php
class Foo {
const constant = "constant";
}
echo "Foo::constant = " . Foo::constant . "\n";
?>
[/snip]
My bad. Still not a bug.