From 85522e21dfb771db795252a8a26be965cdd46593 Mon Sep 17 00:00:00 2001 From: Curt Zirzow Date: Mon, 19 Jul 2004 04:52:41 +0000 Subject: [PATCH] The Constsnts documentation for oop5 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163601 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/constants.xml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/language/oop5/constants.xml b/language/oop5/constants.xml index da17c1c0dc..562aa66979 100644 --- a/language/oop5/constants.xml +++ b/language/oop5/constants.xml @@ -1,11 +1,38 @@ - + Object Constants - . + It is possible to define constant values on a per-class basis remaining + the same and unchangeable. Constant's differ from normal variables + in that you dont use the $ symbol to declare or use + them. Like members, constant + values can not be accessed with a variable that is an instance of the + object. + + Defining and using a constant + +showConstant(); +/* echo $class::constant; is not allowed */ +?> +]]> + +