Differences between constants and variables
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.



0 comments:
Post a Comment