mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
rename to 'Class Constants', and add to instance/constant statement
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@192329 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5b90566602
commit
e59fe02c41
1 changed files with 4 additions and 3 deletions
|
@ -1,13 +1,14 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<sect1 id="language.oop5.constants">
|
||||
<title>Object Constants</title>
|
||||
<title>Class Constants</title>
|
||||
<para>
|
||||
It is possible to define constant values on a per-class basis remaining the
|
||||
same and unchangeable. Constants differ from normal variables in that you
|
||||
don't use the <varname>$</varname> symbol to declare or use them. Like
|
||||
<link linkend="language.oop5.static">static</link> members, constant values
|
||||
can not be accessed from an instance of the object.
|
||||
cannot be accessed from an instance of the object (using
|
||||
<literal>$object::constant</literal>).
|
||||
</para>
|
||||
|
||||
<example>
|
||||
|
|
Loading…
Reference in a new issue