note 76104 added to language.oop5.constants
| From: | yarco dot w at gmail dot com | Date: | Sat, 30 Jun 2007 04:40:12 +0000 |
| Subject: | note 76104 added to language.oop5.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128107@lists.php.net to get a copy of this message | ||
Though they always use class to contain constants above, interface could also contains constants.
See below:
<?php
interface I
{
const A = 0x0;
const B = 0x1;
}
print I::A;
?>
That works fine.
----
Server IP: 69.147.83.197
Probable Submitter: 88.198.43.207
----
Manual Page -- http://www.php.net/manual/en/language.oop5.constants.php
Edit -- https://master.php.net/note/edit/76104
Del: integrated -- https://master.php.net/note/delete/76104/integrated
Del: useless -- https://master.php.net/note/delete/76104/useless
Del: bad code -- https://master.php.net/note/delete/76104/bad+code
Del: spam -- https://master.php.net/note/delete/76104/spam
Del: non-english -- https://master.php.net/note/delete/76104/non-english
Del: in docs -- https://master.php.net/note/delete/76104/in+docs
Del: other reasons-- https://master.php.net/note/delete/76104
Reject -- https://master.php.net/note/reject/76104
Search -- https://master.php.net/manage/user-notes.php