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:
Sean Coates 2005-08-03 18:21:30 +00:00
parent 5b90566602
commit e59fe02c41

View file

@ -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>