1. Constants do not have a dollar sign ($) before them;
2. Constants may only be defined using the define() function, not by simple assignment;
3. Constants may be defined and accessed anywhere without regard to variable scoping rules;
4. Constants may not be redefined or undefined once they have been set; and
5. Constants may only evaluate to scalar values.
No comments:
Post a Comment