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 */ +?> +]]> + +